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: 991
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 ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
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 Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am


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