ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Hi,
I want to use system date and System time as a variable, just like that sample. I think that is very simple and major usage for other operating systems and programing languages, but I couldn't find anything for that at mainframe and JCL.
Code: |
//PGM1 EXEC PGM=MYPGM
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
&&SYSDATE
&&SYSTIME
/* |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
I can't use scheduler variables for that purpose because I will use that variabe several times in a JCL. Scheduler will put the same values for all variables...
I used SORT step for that just below. but it means extra steps..
Code: |
//SORTST1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD *
STRT TIME :
//SORTOUT DD DSN=TEST.FILE1.XXX,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(1,1)),RECFM=FB,LRECL=80
//SYSIN DD *
SORT FIELDS=(COPY)
OUTREC FIELDS=(1,13,DATE1,X,TIME1,42X)
/* |
thanks... |
|