Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How do i use Sections and Trailers with variable length reco

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

New User


Joined: 21 Jul 2007
Posts: 27
Location: Chennai

PostPosted: Tue Apr 29, 2008 12:58 pm    Post subject: How do i use Sections and Trailers with variable length reco
Reply with quote

Hi Mr. Frank Yeager,

I am getting error in below sort card when i use variable length file as an input. If i use Fixed length file its working fine.

SORT FIELDS=(07,8,CH,A,
15,04,BI,A,
19,15,CH,A,
44,10,CH,A),EQUALS
OUTFIL FNAMES=(SORTOUT),REMOVECC,NODETAIL,CONVERT
SECTIONS=(07,27,TRAILER3=(7,101))

Can you help me to solve this problem. icon_smile.gif
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: Tue Apr 29, 2008 9:00 pm    Post subject:
Reply with quote

Kalai,

For the OUTFIL statement, you need a comma after CONVERT (VTOF) and you need a BUILD operand. Since you have NODETAIL, the BUILD operand can just have nX where n is the LRECL you want for the FB output data set. Something like this (note that TRAILER3 will pick up the data from the input record, not from the BUILD operand):

Code:

  OUTFIL FNAMES=SORTOUT,REMOVECC,NODETAIL,VTOF,   
    BUILD=(128X),                                     
    SECTIONS=(07,27,TRAILER3=(7,101))                 
Back to top
View user's profile Send private message
kalaikala

New User


Joined: 21 Jul 2007
Posts: 27
Location: Chennai

PostPosted: Wed Apr 30, 2008 4:05 pm    Post subject:
Reply with quote

Thanks you very much Mr. Frank Yaeger. Its works fine now. icon_biggrin.gif
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us