arps4u
New User
Joined: 03 Jun 2006 Posts: 4
|
|
|
|
Hi,
I've a tape dataset which is having alot many records.
I want to know the record count of this dataset.
I tried using ICETOOL & sorting, it works but taking hell lot of time.
Can anyone provide me with an easier & quick solution?
Kindly reply ASAP.
Thanks. |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
I tried using ICETOOL & sorting, it works but taking hell lot of time.
|
You don't have to sort to get the record count. Copying instead of sorting would be faster. Try this DFSORT/ICETOOL job:
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//TOOLIN DD *
COUNT FROM(IN)
/*
|
The count will be printed in a message in TOOLMSG.
With this method, you're still reading all of the input records, but you're doing a copy instead of a sort and you're not writing any output records. |
|