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

Number of Records in a FLAT file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Thu Mar 26, 2009 11:26 am
Reply with quote

HI

I have huge flat files which I can open only in browse mode .Is there anyTSO or ISPF command to find out number of records in the file or right now i m doign M F8 which is taking lot of time because of browse mode and huge no of records

Please help


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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 26, 2009 12:13 pm
Reply with quote

Use SORT in batch to get a record count.
Back to top
View user's profile Send private message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Thu Mar 26, 2009 2:10 pm
Reply with quote

Hi,
Thanks for your response but .....
I dint get what do you mean by SOrt in batch could you please clrerify on that
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 26, 2009 2:15 pm
Reply with quote

Submit a job that executes the SORT program and see the sysout for the record count.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Mar 26, 2009 2:38 pm
Reply with quote

check
ibmmainframes.com/viewtopic.php?t=2235&highlight=dataset+record+count+sort
Back to top
View user's profile Send private message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Thu Mar 26, 2009 3:08 pm
Reply with quote

but Iwant to know is there any TSO or ISPF command to find number of records because I have 1000 huge flat files it wont be feasible for me to submit job for each and every file and check the count


Thanks in advance
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Mar 26, 2009 3:17 pm
Reply with quote

to find the record count You will have to read all the records
doing from ISPF will be the worst performer
and will keep the tso session busy for a task that can be done better in some other way
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Mar 26, 2009 3:25 pm
Reply with quote

and you better hurry, probably a different count tomorrow.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 26, 2009 3:36 pm
Reply with quote

mosinjamadar wrote:
but Iwant to know is there any TSO or ISPF command to find number of records because I have 1000 huge flat files it wont be feasible for me to submit job for each and every file and check the count
Thanks in advance

I will read that as "This looks like rather a lot of boring repetitive work"

Unfortunately a lot of areas in IT are like that, lots and lots of doing the same old thing day after day. Get used to it.

Maybe you should ask the programmers to write record counts to sysout from the programs rather than waste a lot of time and resource reading all of the files to find out later.
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: Thu Mar 26, 2009 8:31 pm
Reply with quote

Hello,

Quote:
find number of records because I have 1000 huge flat files it wont be feasible for me to submit job for each and every file and check the count
Why do you believe you want/need exact record counts for 1000 files? There are few things with less value. . .

Suggest that with simple arithmetic you can get quite close to the number of records by calculating the number of records the used space will hold.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top