5 pts.
 TIMECHK command
I have a .cmd file in which "TIMECHK" command is being used to check the server time and then execute some more batch commands. I couldnot find any reference file or exe file which has the code for the command "TIMECHK". Can any of you help in finding the source for this command "TIMECHK". Is there any checkpoints where i can go and check for the code of this command.

Software/Hardware used:
ASKED: June 16, 2008  8:06 AM
UPDATED: April 27, 2010  7:00 AM

Answer Wiki:
Hello. If the .CMD is a CL you can do a RTVCLSRC to retrieve the source code. From a command line you can type GO CMDSRC for source commands or GO CMDRTV for retrieve commands. I would type DSPCMD from the command line to get your information and then do the retrieve. TPinky ==================================================== When you say a ".cmd file", what operating system are you talking about? It would seem to be for Windows. If so, then just open it with Notepad. Tom
Last Wiki Answer Submitted:  April 27, 2010  7:00 am  by  Tpinky   4,165 pts.
All Answer Wiki Contributors:  Tpinky   4,165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

In a bit more detail, use the DSPCMD command:

DSPCMD TIMECHK

- The line ‘Program to process command’ will tell you the name of the command processing program.

Then use DSPPGM with the name of the program, and the resulting screen will tell you the source file and library name where (hopefully) you can find the source.

If the program is OPM (the old-style program object), this information will be on the first page.

If the program is ILE, then you will have to press ENTER a few times to get to the module information screen. Tag the module (usually the same name as the program) with 5, press ENTER and the source information will be displayed.

As TPinky says, if the program is a CL program you can (usually) retrieve the source from the program object by using the RTVCLSRC command; but if you can find the original source, that is much better, especially from a change management perspective.

Regards,

Sloopy

 2,195 pts.