IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to add high values X'FFFFFFFFF' on a trailer record

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> DFSORT/ICETOOL
View previous topic :: View next topic  
Author Message
Thabi



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

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

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  
Garry Carroll



Joined: 08 May 2006
Posts: 165
Location: Dublin, Ireland

Posted: Mon Jun 30, 2008 3:16 pm    Post subject:  

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  
Thabi



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

Posted: Mon Jun 30, 2008 3:36 pm    Post subject:  

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  
expat



Joined: 14 Mar 2007
Posts: 3499
Location: Brussels once more ...

Posted: Mon Jun 30, 2008 3:41 pm    Post subject:  

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  
dick scherrer



Joined: 23 Nov 2006
Posts: 8598
Location: 221 B Baker St

Posted: Mon Jun 30, 2008 9:05 pm    Post subject:  

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 :wink:
Back to top  
Thabi



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

Posted: Tue Jul 01, 2008 11:46 am    Post subject: Thanks  

Thanks so much, will do so next time I post something. :D
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> DFSORT/ICETOOL
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM