View previous topic :: View next topic
|
Author |
Message |
op
New User
Joined: 31 Oct 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi,
I want to prepend 3 zeroes to my VB input dataset(LRECL=3000).
The output should also be a VB dataset with LRECL=(3003).
Regards,
Om Prakash |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Do you want to put the three zeros at the end of each record or somewhere else? What type of zeros (binary zeros, PD zeros, characeter zeros)? |
|
Back to top |
|
|
op
New User
Joined: 31 Oct 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi Frank,
I need to prepend Character zeroes at the begining of each record. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (VB/3000)
//SORTOUT DD DSN=... output file (VB/3003)
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,4,C'000',5)
/*
|
|
|
Back to top |
|
|
op
New User
Joined: 31 Oct 2006 Posts: 48 Location: Chennai
|
|
|
|
Thanks a lot |
|
Back to top |
|
|
|