Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

OUTFIL FAILING WITH DIFFERENT INPUT/OUTPUT FILE LENGTHS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
yogeesh.p

New User


Joined: 29 May 2006
Posts: 1

PostPosted: Tue Apr 19, 2011 8:37 pm    Post subject: OUTFIL FAILING WITH DIFFERENT INPUT/OUTPUT FILE LENGTHS
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Apr 19, 2011 8:57 pm    Post subject: Reply to: OUTFIL FAILING WITH DIFFERENT INPUT/OUTPUT FILE LE
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1722
Location: UK

PostPosted: Tue Apr 19, 2011 9:16 pm    Post subject:
Reply with quote

LRL? Do you mean LRECL?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Apr 19, 2011 9:33 pm    Post subject:
Reply with quote

I think he meant Logical Record Length? Though, I've never seen using this abbreviation ever before... icon_eek.gif. Understood, why Robert says -- terms are crictical in IT, it could be Left Right Left! icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Apr 19, 2011 9:39 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us