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

Number of records in a file


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

New User


Joined: 24 Jul 2006
Posts: 11

PostPosted: Mon Apr 19, 2010 6:42 pm
Reply with quote

I need to write number of input records (count) into an output file. After searching this forum i got the following code.

//SYSIN DD *
SORT FILEDS=COPY
OUTFIL REMOVECC,
TRAILER1=(COUNT=(M11,LENGTH=9))
/*

But This is writing all the input records into output file along with count as trailer record. I just want one record output (only count) in the output file.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Apr 19, 2010 6:51 pm
Reply with quote

NODETAIL = Specifies that data records are not to be output for the reports produced for this OUTFIL group.
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Mon Apr 19, 2010 6:51 pm
Reply with quote

Use NODETAIL in your control card.

Code:

  OPTION COPY                                       
  OUTFIL NODETAIL,REMOVECC,                         
     TRAILER1=('COUNT=',COUNT=(M11,LENGTH=09)) 


Thanks,
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Apr 19, 2010 6:52 pm
Reply with quote

Already asked and answered by the same poster:

www.ibmmainframes.com/viewtopic.php?t=20518&highlight=
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Apr 19, 2010 7:34 pm
Reply with quote

Just for reference, it is also included in "DFSort Smart Tricks" paper now.
Back to top
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Mon Apr 19, 2010 8:09 pm
Reply with quote

Hi Anuj,
Can you please give the path for "DFSort Smart Tricks" paper that you mentioned so that i can read this?
Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Apr 19, 2010 8:10 pm
Reply with quote

start here: ibmmainframes.com/viewtopic.php?t=1348

or more specifically:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Mon Apr 19, 2010 8:11 pm
Reply with quote

Here it is...

ftp.software.ibm.com/storage/dfsort/mvs/sorttrck.pdf

Thanks,
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Mon Apr 19, 2010 8:12 pm
Reply with quote

Nevermind,..

Dick Brenholtz's link is far more useful....

Thanks,
Back to top
View user's profile Send private message
keane

New User


Joined: 24 Jul 2006
Posts: 11

PostPosted: Mon Apr 19, 2010 9:07 pm
Reply with quote

All of you,

Thanks alot. It is working fine.
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top