View previous topic :: View next topic
|
Author |
Message |
vinopriya
New User
Joined: 18 Sep 2007 Posts: 2 Location: New Delhi
|
|
|
|
Hi All,
I need to copy a file of 1500 LRECL to a file of 1700 LRECL through JCL.
Can anybody suggest reg this.
Thanks
Vino |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
What have you tried so far?
This task can be achieved by a simple SORT jcl |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Vino,
You can use a DFSORT job like this to do what you asked for. The 1500 byte records will be padded on the right with blanks to create 1700 byte records.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/1500)
//SORTOUT DD DSN=... output file (FB/1700)
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(1700:X)
/*
|
|
|
Back to top |
|
|
vinopriya
New User
Joined: 18 Sep 2007 Posts: 2 Location: New Delhi
|
|
|
|
Hi Frank,
Thanks a lot for your answer.
Required task is done |
|
Back to top |
|
|
|