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
 

 

How to add extra SPACES after the trailer count in DFSORT!!!

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

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Thu Sep 10, 2009 12:56 pm    Post subject: How to add extra SPACES after the trailer count in DFSORT!!!
Reply with quote

Hi,

i'm using the below mentioned SORT card and producing the trailer count.

TRAILER1=(C'9',COUNT-1=(ZD,LENGTH=10)),

but after the length of 10 i have to populate some extra spaces becase this file is used in one more merge step and the merge step fails because of record length is lesser then in the merge filelds.

MERGE FIELDS=(5,17,CH,A)

15 BYTE VARIABLE RECORDS IS SHORTER THAN 21 BYTE MINIMUM FOR

i used VLSHORT option but according to my design i have to populate some spaces after TRAILER count.

quicker help is much appricated.
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 10, 2009 5:25 pm    Post subject:
Reply with quote

Can you show your full sortcard where you have used TRAILER1?
Also what is LRECL of input dataset?
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 Sep 10, 2009 9:05 pm    Post subject:
Reply with quote

kumaresh.M,

If you're just trying to increase the length of the trailer record, you can use something like this:

Code:

  TRAILER1=(C'9',COUNT-1=(ZD,LENGTH=10),nX),


where n is the number of spaces you want to add.

It that doesn't work or doesn't do what you want, then give more details of exactly what you're trying to do.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 10, 2009 10:34 pm    Post subject:
Reply with quote

Frank wrote:
If you're just trying to increase the length of the trailer record, you can use something like this:
Code:

Code:
TRAILER1=(C'9',COUNT-1=(ZD,LENGTH=10),nX),


But I think even if you dont give nX, spaces will be put after count till LRECL,correct me if wrong?

Quote:
15 BYTE VARIABLE RECORDS IS SHORTER THAN 21 BYTE MINIMUM FOR

This problem doesnt seems to be occured by coding of TRAILER1
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 Sep 10, 2009 10:46 pm    Post subject:
Reply with quote

Quote:
But I think even if you dont give nX, spaces will be put after count till LRECL,correct me if wrong?


Ok, you're wrong. icon_smile.gif DFSORT does not pad the trailer record with blanks to the LRECL when the RECFM is VB.

The RECFM here is VB. That means each record has an RDW with a record length. When DFSORT writes the trailer record, it determines the length of the record and puts that in the RDW. So, for example, the trailer record might look like this:

Code:

Len|Data
15  90000000012


That's a 15-byte record, so it could cause that error message.

If you add blanks to the end of the trailer record, then DFSORT adjusts the length of the record accordingly. So, for example, if you add 6 blanks (b) the record would look like this:

Code:

Len|Data
21  90000000012bbbbbb


That's a 21-byte record, so it would not cause that error message.

Of course, I don't know what else is going on here since the OP didn't show the complete job, but adding blanks in TRAILER1 will increase the length of the trailer record to include the added blanks (and only the added blanks).
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 10, 2009 11:01 pm    Post subject:
Reply with quote

Quote:
when the RECFM is VB.

Yeah right.. I missed it... icon_sad.gif

Thanks Frank
Back to top
View user's profile Send private message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Mon Sep 14, 2009 2:27 pm    Post subject:
Reply with quote

Hi Frank,

Sorry for the late reply,

i populated the spaces same like how you mentioned its working as expected.

Thanks a lot for your keane support.

Thanks and regards,
kumaresh.M
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 CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 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
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm


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