IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get teh count including the trailer record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Wed Oct 15, 2008 4:06 pm
Reply with quote

I have a sort like this which gives the count of all records except the trailer. I need to get the count including the trailer too, i;e count +1. Please help in case anyone knows this. My sort card is as given below.

SORT FIELDS=COPY
OUTFIL FILES(OUT),
LINES(060),
OUTREC=(0001:0001,0080,
0081:52X),
TRAILER1(0001:'ZCAD999 ',
0018:&DATE,
0026:&TIME,
0034:'001',
0037:COUNT,
0049:' ',
0058:'PAY012 ',
0073:'NONEDIR')
Back to top
View user's profile Send private message
Escapa

Senior Member


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

PostPosted: Wed Oct 15, 2008 5:32 pm
Reply with quote

Use below

0037:COUNT+1=(EDIT=(IIIIIIIT)),
Back to top
View user's profile Send private message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Wed Oct 15, 2008 7:33 pm
Reply with quote

Thanks...it worked....
Back to top
View user's profile Send private message
Escapa

Senior Member


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

PostPosted: Wed Oct 15, 2008 8:21 pm
Reply with quote

Quote:
Thanks...it worked....

Welcome icon_smile.gif icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top