View previous topic :: View next topic
|
Author |
Message |
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
Hi
i have an input file and i want to format this file with date as header and copy the entire file to output. Can anyone provide me the code to this. Date should be current date.
Thanks,
Santosh |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You could use a DFSORT job like this:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RECORD 1
RECORD 2
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,HEADER1=(DATE=(4MD/))
/*
|
SORTOUT would have:
Code: |
2008/06/28
RECORD 1
RECORD 2
|
If you want something else, you need to be more specific about what you want. |
|
Back to top |
|
|
gskn4u Currently Banned New User
Joined: 29 Feb 2008 Posts: 25 Location: hyderabad
|
|
|
|
Yes. This is what i wanted. This is a part of my requirement. Thanks Frank.
Santosh. |
|
Back to top |
|
|
|