How can I get the number of records of a sequential file without browsing it?

Showing Answers 1 - 12 of 12 Answers

venkey

  • Jul 18th, 2006
 

hi,

u can use tso command "COUNT" over sequential dataset to know the number of records in it with out browsing it.

  Was this answer useful?  Yes

Sumit

  • Aug 20th, 2006
 

No. of records present in file can be count with help of sort job. In SORTIN give your input file name and give SORTOUT as dummy in sysin paramtere give the control card "sort fields=copy". and submit the job you will find out the number of records in sysout of job.

  Was this answer useful?  Yes

srilkrishy

  • Aug 25th, 2006
 

Hi,

Here are the diffrent methods to get the count of records.

1)you can use the SORT tool count option.

2)you can generate a sequence number on each record and then select the last record thru SELECT option of the sort and OUTREC only the sequence number columns.

3)Add a 000001 character thru INREC option of the SORT and add them up to get the count.

The below 2 can used just to check the number of records.

1)Use the REPRO command of IDCAMS

2)use the file aid 3.5 option and see the number of records.

 

Thank you

Krishy

  Was this answer useful?  Yes

Michael Kaplan

  • Nov 12th, 2006
 

 You can use count parameter in Icetool

  Was this answer useful?  Yes

P.Karthikkumar

  • Jan 10th, 2007
 

//JOBNAME...

//STEP1     EXEC    PGM=FILEAID

//SYSOUT       DD  SYSOUT=*

//SYSPRINT    DD   SYSOUT=*

//DD1      DD    DSN=A.B.C,DISP=SHR

//SYSIN   DD *

 $$DD1  TALLY

/*

//

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions