View previous topic :: View next topic
|
Author |
Message |
sonu_winks
New User
Joined: 23 Nov 2005 Posts: 23
|
|
|
|
I have an input file of length 300. I want to increase the size of it to 400.
This increased file is read in to a copy book which has packed decimals from position 301 to 321. I want to initialize this packed decimal positions to zeroes before read into this copy book in my program. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
What is the length of each of the packed decimal fields you want to initialize? What do you want in positions 322-400? |
|
Back to top |
|
|
sonu_winks
New User
Joined: 23 Nov 2005 Posts: 23
|
|
|
|
Frank,
I have four packed decimal variables of length 5 bytes each from 301.
I can have spaces after that. |
|
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 (FB/300)
//SORTOUT DD DSN=... output file (FB/400)
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(301:4X'000000000C',400:X)
/*
|
|
|
Back to top |
|
|
sonu_winks
New User
Joined: 23 Nov 2005 Posts: 23
|
|
|
|
Thanks Frank ! |
|
Back to top |
|
|
|