iaccbond wrote:i just need to pass current timestamp from jcl to cobol as input.
my pgm required job start timestamp ..
But you see, my dear child, you cannot
. When the JCL is interpreted -- which may be well before the job actually starts -- it is then frozen. As NicC
says, you can easily get the program start time, but the actual job start time can only be gotten by chasing control blocks.NicC
also asks an important question: why
do you need the job start time? If you can explain that, we may be able to show you a solution to your problem that does not require doing the impossible.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day