View previous topic :: View next topic
|
Author |
Message |
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi,
I am using DFSORT to create one line file with system date and time. I have coded OUTREC parameters to acheive this. But SORT is asking to give a SORTIN file. I don't want to use the last runs's SYSOUT file as this run's SORTIN.
Is there a way out to achieve this without using any real SORTIN file?
Thanks,
Siva. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
There are two way to do this with DFSORT.
1) You can use HEADER1 to create the date record instead of OUTREC. For example:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DUMMY,RECFM=FB,LRECL=n,BLKSIZE=n
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,HEADER1=(date,time)
/*
|
where n is the LRECL you want for SORTOUT, and date and time are any of DFSORT's HEADER1 date and time parameters.
2) You can use OUTREC with one dummy SORTIN record. For example:
Code: |
//S2 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DUMMY
/*
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(date,time)
/*
|
where date and time are any of DFSORT's OUTREC date and time parameters. |
|
Back to top |
|
|
sivaplv
New User
Joined: 15 Mar 2005 Posts: 17 Location: Toronto, Canada
|
|
|
|
Hi,
Thanks. The solution for moderator worked for me.
Regards, |
|
Back to top |
|
|
|