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 high values X'FFFFFFFFF' on a trailer record

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

New User


Joined: 20 Jun 2008
Posts: 3
Location: Sandton,South Africa

PostPosted: Mon Jun 30, 2008 2:57 pm    Post subject: How to add high values X'FFFFFFFFF' on a trailer record
Reply with quote

Hi,

I am trying to add a trailer record that has the first 7 characters as high values and the next 8 characters as a count of records in the file and the last character as anything.

I have tried using the following but it brings up an error:

//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,
OMIT=(1,2,ZD,EQ,99),
BUILD=(1,16),
TRAILER1=(X'FFFFFFF',COUNT-1=(TO=ZD,LENGTH=9))
/*

My output file trailer record needs to look like this:
00000167N
FFFFFFFFFFFFFFFD
FFFFFFF000001675


Thanks in advance.
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon Jun 30, 2008 3:16 pm    Post subject:
Reply with quote

Quote:
the first 7 characters as high values and the next 8 characters as a count of records


The first issue is that you have coded for 3.5 bytes. To set high-values in 7 bytes you need X'FFFFFFFFFFFFFF' - 2 Fs for each byte. You then have LENGTH=9 for your eight-byte count field.

For readability you should show your job as "code".

Regards,
Garry
Back to top
View user's profile Send private message
Thabi

New User


Joined: 20 Jun 2008
Posts: 3
Location: Sandton,South Africa

PostPosted: Mon Jun 30, 2008 3:36 pm    Post subject:
Reply with quote

Hi Gary,

Thank you so much, I changed the X'FFFFFFF' TO X'FFFFFFFFFFFFFF' and it worked fine, I have changed LENGTH to 8 but Im not sure if I should mention anything about the last character. With regards to showing my job as code,Im not sure I quite understand.

Again thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 30, 2008 3:41 pm    Post subject:
Reply with quote

Code:

If you click the code button your typing gets put into VB code state,ents like this

And when you click the code button again, you return to normal text.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 30, 2008 9:05 pm    Post subject:
Reply with quote

Hello,

In addition to what Expat said, you can also highlight a block of text/code and click on the "Code" tag and the highlighted text will be "Code"ed.

Also, and quite helpful, you can Preview your post and see what it will look like to the forum before actually posting - the forum appears quite different than the Reply Editor.

When you are satisfied with the way your post will appear, then click Submit - do not forget to do this - if Submit is not clicked, the post is discarded icon_wink.gif
Back to top
View user's profile Send private message
Thabi

New User


Joined: 20 Jun 2008
Posts: 3
Location: Sandton,South Africa

PostPosted: Tue Jul 01, 2008 11:46 am    Post subject: Thanks
Reply with quote

Thanks so much, will do so next time I post something. 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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 10 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
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
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us