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

ICEMAN job to find number of records in a tape file


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

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Fri Dec 14, 2007 6:44 pm
Reply with quote

Can you please post the ICEMAN job to find number of records in a tape file?

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 14, 2007 9:56 pm
Reply with quote

Hello,

If you do this with ICEMAN, or SORT, or any other utility that reads/counts the records, you will have to read all of the records.

If you talk with your storage management people, the info you want should be available in the tape management system and the data need not be processed to find the count.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Dec 14, 2007 10:06 pm
Reply with quote

roopannamdhari,


The following DFSORT JCL will give you the no of records in your tape dataset
Code:

//COUNT   EXEC  PGM=ICEMAN                           
//SYSOUT  DD SYSOUT=*                             
//SORTIN  DD DSN=INPUT TAPE DATASET,
//           DISP=SHR
//SORTOUT DD SYSOUT=*               
//SYSIN   DD *                     
  SORT FIELDS=COPY                   
  OUTFIL REMOVECC,NODETAIL,         
  TRAILER1=('NO: OF RECORDS: ',COUNT)
//*     


Hope this helps...
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Sat Dec 15, 2007 10:23 am
Reply with quote

thanks a lot Skolusu...
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Sat Dec 15, 2007 10:30 am
Reply with quote

Hi Kolusu,

can you please explain for what this REMOVECC & NODETAIL stands for ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Dec 15, 2007 10:41 am
Reply with quote

Hello,

REMOVECC removes ANSI control characters from the report.

NODETAIL prevents detail records from being written to OUTFIL.


If your tape file might have a few hundred million records, i'd still suggest getting the info you want without reading all of the records. . . .
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Sat Dec 15, 2007 10:45 am
Reply with quote

Thank you ..
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Sun Dec 16, 2007 12:28 am
Reply with quote

Quote:
can you please explain for what this REMOVECC & NODETAIL stands for ?


For complete details on all of the parameters of DFSORT's OUTFIL statement, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/3.13?DT=20060615185603

You can access all of the DFSORT books online from:

Use [URL] BBCode for External Links
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 and retrive records f... DFSORT/ICETOOL 3
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
Search our Forums:

Back to Top