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
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