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 get teh count including the trailer record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to get teh count including the trailer record
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    Post subject:
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    Post subject: Reply to: How to get teh count including the trailer record
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    Post subject:
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    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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


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