|
View previous topic :: View next topic
|
| Author |
Message |
josessegura
New User
Joined: 12 Feb 2015 Posts: 6 Location: México,D.F.
|
|
|
|
Hi,
anyone of you knows the parameter, which allows
automatically fill the remaining fields on a outrec to DFSORT .
look in the manuals ibm , but I did not find solution.
example :
LRECL = 926
Outrec length = 900
The remaining 26 bytes must be filled automatically by X'00 '
thx |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
If your records are fixed-length
| Code: |
INREC OVERLAY=(901:26Z) |
If your records are variable-length what do you want to do? |
|
| Back to top |
|
 |
josessegura
New User
Joined: 12 Feb 2015 Posts: 6 Location: México,D.F.
|
|
|
|
| Bill Woodger wrote: |
If your records are fixed-length
| Code: |
INREC OVERLAY=(901:26Z) |
If your records are variable-length what do you want to do? |
I am migrating CA -Sort to DFSORT , and found cards that outrec bytes are less than the defined in SPACE , CA fills these MISS bytes , and DFSORT does not.
thx |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
| Post the sysout from a CA-SORT step and the output from your DFSORT step, please, and we can see. |
|
| Back to top |
|
 |
josessegura
New User
Joined: 12 Feb 2015 Posts: 6 Location: México,D.F.
|
|
|
|
| Bill Woodger wrote: |
| Post the sysout from a CA-SORT step and the output from your DFSORT step, please, and we can see. |
The output is as follows:
| Code: |
SORT FIELDS=(50,12,CH,A)
INCLUDE COND=(8,2,CH,EQ,C'FE')
OUTFIL FNAMES=SORTOUT1,
OUTREC=(50,12,62,5,152,30,182,5,8,2,187,3,190,1,
191,1,192,1,193,1,194,1,195,1,196,2,198,2,
200,8,208,2,15,1,210,10,474,4,478,1,479,7,
486,30,220,15,235,2,237,3,240,5,245,1,246,
1,247,2,249,110,359,110,469,5,516,47,563,279,
22,3,25,3,10,2)
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE222A 0 718 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 926 BYTE LRECL FOR SORTOU
ICE751I 0 C5-K62149 C6-K90026 C7-K58148 C8-K67572 E4-K58148 E7-K70685
ICE052I 3 END OF DFSORT |
The input and output has a length of 926 |
|
| Back to top |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1217 Location: Dublin, Ireland
|
|
|
|
If you add the lengths of the fields you are placing in OUTREC, you'll see they add to 718 - which is what DFSORT is reporting in the ICE222A message. If you change the last line as Bill suggested you'll get the record padded as required.
| Code: |
| 22,3,25,3,10,2,901:26Z) |
Garry |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|