View previous topic :: View next topic
|
Author |
Message |
rajnikanth.ch
New User
Joined: 04 Apr 2007 Posts: 2 Location: chennai
|
|
|
|
I want to a jcl hoe to get count from a tape file |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Rough estimate - take a look at the TMS report to see how many blocks are used, and then multiply by the number of records per block.
More accurate for FB than it is for VB though |
My reply to the same thread raised by someone else in the JCL forum.
I puzzles me as to why you would actually want to know the number of records on a file, and would willingly waste resource just to find out ?
Let's face it, if the record count was that important then the program that creates the file should issue this information or some type of internal record reconciliation program / product implemented. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
expat wrote: |
Let's face it, if the record count was that important then the program that creates the file should issue this information or some type of internal record reconciliation program / product implemented. |
Hi,
expat's above point is quite logical. However, not sure though, if You would like to know characteristics such as
Code: |
RECFM=XX ; LRECL= XXX; BLKSIZE= XXXXX |
You can use below JCL:
Code: |
//**********************************************************************
//*THIS JOB WILL GIVE THE CHARACTERISTICS OF TAPE FILE, WITHOUT GETTING
//*IT ON DASD.
//**********************************************************************
//*
//STEP010 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//DD01 DD DSN=TAPE_FILE_NAME,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(DD01)
/*
//* |
In S.ST check DFSMSG for DD01.
Hope this helps. |
|
Back to top |
|
|
|