View previous topic :: View next topic
|
Author |
Message |
yogeesh.p
New User
Joined: 29 May 2006 Posts: 1
|
|
|
|
Hi,
I have a requirement to change the length of OUTFIL while sorting. The input file LRL is 405 and LRL of output file is 415. There are 2 output files and one input file.
The SORT card is as mentioned below:
SORT FIELDS=(1,11,CH,A)
OUTFIL FNAMES=DD1
INCLUDE=ALL
OUTFIL FNAMES=DD2
INCLUDE=(1,1,CH,A,C'B')
The above sortcard is working fine for output files length being same (405). when the LRL of the output files is changed to 415, the job is failing with below error message.
'405 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 415 BYTE LRL OF THE DD1'
Can any one please suggest me on this?
Many Thanks. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Where did you specify the output length?
Code: |
SORT FIELDS=(1,11,CH,A)
OUTFIL FNAMES=DD1,BUILD=(1,405,415:X)
OUTFIL FNAMES=DD2,INCLUDE=(1,1,CH,EQ,C'B'),BUILD=(1,405,415:X)
|
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
LRL? Do you mean LRECL? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I think he meant Logical Record Length? Though, I've never seen using this abbreviation ever before... . Understood, why Robert says -- terms are crictical in IT, it could be Left Right Left! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
yogeesh.p - with the given info, code from SuperK should work for you - however, note last 10-butes will be filled up with sapces (X'40'). |
|
Back to top |
|
|
|