TIMECHK command

5 pts.
Tags:
Development
TIMECHK
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sloopy
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following