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
 
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 BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm

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