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
 

 

Who determines the LRECL of SORTOUT?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
lee_issc

New User


Joined: 11 Dec 2008
Posts: 33
Location: China

PostPosted: Wed Jan 13, 2010 8:09 am    Post subject: Who determines the LRECL of SORTOUT?
Reply with quote

Dears,

I am puzzled by the LRECL of SORTOUT these days.Say my JCL first

Code:

//SORTIN   DD  DSN=ACA.LIM.IMTAGT.S31,DISP=SHR     
//SORTOUT  DD  DSN=TDL.LIM.CD.DOWN.TDS.TEMP33,     
//             DISP=(NEW,CATLG,DELETE),UNIT=SYSDA, 
//             SPACE=(TRK,(100,10),RLSE)           
//*            DCB=*.SORTIN                         
//SORTWK01 DD  UNIT=DASD,SPACE=(CYL,5)             
//SORTWK02 DD  UNIT=DASD,SPACE=(CYL,5)             
//SORTWK03 DD  UNIT=DASD,SPACE=(CYL,5)             
//SYSUDUMP DD  SYSOUT=*                             
//SYSIN    DD  *                                   
 OPTION VLSCMP                                     
 INCLUDE COND=(29,4,CH,EQ,C'U101',OR,               
               29,4,CH,EQ,C'GTG8',OR,               
               29,4,CH,EQ,C'GTG6')                 
 SORT   FIELDS=(17,10,CH,A)                         
 OUTREC FIELDS=(1:1,4,5:17,10,15:29,4)             
/*                                                 


The LRECL of SORTIN is 2185 with VB.After sorted I got the 2185 length for the SORTOUT file.But I just want to a FB file with length 10+4.How can I do?
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


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

PostPosted: Wed Jan 13, 2010 2:40 pm    Post subject: Re: Who determines the LRECL of SORTOUT?
Reply with quote

lee_issc wrote:
But I just want to a FB file with length 10+4.How can I do?
Per your post, OUTREC should decide the LRECL for SORTOUT but what "10+4" means, did you want to say LRECL should be 14?
Back to top
View user's profile Send private message
lee_issc

New User


Joined: 11 Dec 2008
Posts: 33
Location: China

PostPosted: Wed Jan 13, 2010 3:06 pm    Post subject:
Reply with quote

Anuj Dhawan,

Quote:

did you want to say LRECL should be 14?


Yes.FB with LRECL 14.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Jan 13, 2010 10:27 pm    Post subject:
Reply with quote

You can use the following DFSORT control statements to convert your VB file to an FB/14 file.

Code:

 OPTION VLSCMP                                     
 INCLUDE COND=(29,4,CH,EQ,C'U101',OR,               
               29,4,CH,EQ,C'GTG8',OR,               
               29,4,CH,EQ,C'GTG6')                 
 SORT   FIELDS=(17,10,CH,A)                         
 OUTFIL VTOF,BUILD=(17,10,29,4)     
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts WER247A incompatible lrecl Danielle.Filteau SYNCSORT 8 Tue May 02, 2017 4:04 am
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm


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