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

how to find the no of records directly from a dataset?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rameshbabu
Warnings : 1

New User


Joined: 23 May 2005
Posts: 27

PostPosted: Wed May 25, 2005 4:07 pm
Reply with quote

hi

how to find the no of records directly from a dataset?
Back to top
View user's profile Send private message
crreddy

New User


Joined: 09 May 2005
Posts: 4

PostPosted: Wed May 25, 2005 4:36 pm
Reply with quote

Hi ramesh,
you can use the TSO COUNT command
TSO COUNT dataset(give name in single quotes)

or
u can directly give line command 'COUNT' beside the dataset

This will give you the total count of records present in that dataset.

-crreddy
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Wed May 25, 2005 4:40 pm
Reply with quote

Hi Rameshbabu,

Try this link:
www.ibmmainframes.com/viewtopic.php?t=2235

regards,
David.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 25, 2005 4:42 pm
Reply with quote

hi ramesh,
in tso 3;4 give the dataset name and give I in left side of the dataset listed. It will give you the information abt the dataset as well as number of members in that dataset.
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Sun May 29, 2005 11:08 am
Reply with quote

hai crreddy
but i am not getting total number of records in a file.
plz explain me properly.
Back to top
View user's profile Send private message
sree_2503

New User


Joined: 22 May 2005
Posts: 12
Location: Chennai,India

PostPosted: Mon May 30, 2005 10:16 am
Reply with quote

Hi Ramesh,

At the first place, I couldnt understand fully what you meant by finding no. of records directly from a dataset. Did you mean that you have a ds in hand and you want to know how many records are there without coding thru programs?
Well, the simplest way then is to browse the DS (rather the file), and see the count against Line number on top as you pass M in the command line and then hit F8(this is the hot key to reach end of file).....tht gives you the no of records tht file contains..
Back to top
View user's profile Send private message
rameshbabu
Warnings : 1

New User


Joined: 23 May 2005
Posts: 27

PostPosted: Tue May 31, 2005 12:27 pm
Reply with quote

hi sorry for inconvinience for you if the dataset is in DASD ok if it is in tape then we have to copy into DASD then we have to follow the same as above you mentioned ok i think you will get the clear idea
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top