Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Number of Records in a FLAT file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Number of Records in a FLAT file
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 26, 2009 12:13 pm    Post subject:
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    Post subject: Reply to: Number of Recors in a FLAT file
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 26, 2009 2:15 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Mar 26, 2009 2:38 pm    Post subject: Reply to: Number of Recors in a FLAT file
Reply with quote

check
http://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    Post subject: Reply to: Number of Recors in a FLAT file
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Mar 26, 2009 3:17 pm    Post subject: Reply to: Number of Recors in a FLAT file
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: 6968
Location: porcelain throne

PostPosted: Thu Mar 26, 2009 3:25 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 26, 2009 3:36 pm    Post subject: Re: Reply to: Number of Recors in a FLAT file
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

Site Director


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

PostPosted: Thu Mar 26, 2009 8:31 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us