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
 

 

Trailer in OUTFIL with recsize shorter than detail recsize

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

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Thu Jan 15, 2009 7:47 pm    Post subject: Trailer in OUTFIL with recsize shorter than detail recsize
Reply with quote

How can I create a trailer record 'truncated", whose recsize is shorter than detail record (PGM=SORT) ?


Code:

ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 14:45 ON THU
            OMIT COND=(5,3,CH,EQ,C'S99')
            INREC IFTHEN=(WHEN=(5,3,CH,EQ,C'S01'),
                       OVERLAY=(15:200C' '))
            SUM  FIELDS=(53,10,63,10,73,10,83,10,93,10,103,10,113,10,123,10,
                         133,10,143,10,153,10),FORMAT=PD
            SORT FIELDS=(1,30,CH,A)
            OUTFIL FNAMES=SORTOUT,REMOVECC,
               TRAILER1=(1:C'S',2:C'99',COUNT=(M11,LENGTH=9))
            OUTFIL FNAMES=ENTETE,REMOVECC,
               TRAILER1=(1:C'S',2:C'99',COUNT=(M11,LENGTH=9)),
               INCLUDE=(5,3,CH,EQ,C'S99'),
               BUILD=(1,15)
ICE201I F RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE230A 0 16 BYTE HEADER/TRAILER RECORD EXCEEDS 15 BYTE LRECL FOR ENTETE
ICE751I 0 C5-K90013 C6-K90013 C7-K90000 C8-K90013 E9-K90013 E7-K24705
ICE052I 3 END OF DFSORT
******************************** BOTTOM OF DATA *****************************
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: Thu Jan 15, 2009 10:20 pm    Post subject:
Reply with quote

Your BUILD=(1,15) operand sets LRECL=15 for the ENTETE output data. That means 15 is the maximum length for the output records. So you can't have a 16-byte trailer record since it's larger than the LRECL of 15.

You can either use BUILD=(1,15,X) to set the LRECL to 16 or you can use LRECL=16 on the ENTETE DD statement to set the LRECL to 16.
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Thu Jan 15, 2009 11:39 pm    Post subject: Reply to: Trailer in OUTFIL with recsize shorter than detail
Reply with quote

Thank you
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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts DSN name in trailer kranthikumarb DFSORT/ICETOOL 7 Mon Feb 29, 2016 11:30 am
No new posts JCL SORT to split the file and put re... Bill Woodger DFSORT/ICETOOL 17 Wed Feb 17, 2016 4:17 pm
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm
No new posts GROUP - header data to be repeated in... Musab Ahmed DFSORT/ICETOOL 3 Mon Feb 01, 2016 11:36 am


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