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
 

 

TRAILER1 result minus one

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

New User


Joined: 01 Apr 2006
Posts: 17
Location: Pune

PostPosted: Wed Sep 05, 2007 5:02 pm    Post subject: TRAILER1 result minus one
Reply with quote

Hi all,
currently i am fighting with one problem. In my output file Header record is as below :
<BatchUpdate Type="TRI" WorkDate="20070905" RecordCount="00037">
followed by Detail records. And last record is </BatchUpdate>
which is also being counted in the RecordCount.

I want only the number of detail records and that is 36 and not 37.

My control card is as below :
SORT FIELDS=COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(COUNT=(M11,LENGTH=5))

Thanks you all for reading....!
Back to top
View user's profile Send private message

shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Sep 05, 2007 5:41 pm    Post subject:
Reply with quote

Try with the following sort cards
Code:

  SORT FIELDS=COPY
  OUTFIL REMOVECC,NODETAIL,
     TRAILER1=(COUNT-1=(M11,LENGTH=5))
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Sep 05, 2007 9:19 pm    Post subject:
Reply with quote

sandy,

For more information on DFSORT's COUNT-n and COUNT+n functions, see my paper at:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/
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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
This topic is locked: you cannot edit posts or make replies. How to run and see the result of DFH$... lind sh CICS 2 Wed Jul 27, 2016 7:04 pm
No new posts Build record according subtraction re... witsche SYNCSORT 5 Fri Oct 02, 2015 12:53 pm
No new posts HEADER1 and TRAILER1 with Julian date... nileshinus DFSORT/ICETOOL 3 Mon Oct 13, 2014 10:45 pm
No new posts Why i use TSO REXX give me different ... jackzhang75 CLIST & REXX 11 Tue Aug 05, 2014 12:21 am


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