Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: how to find the no of records directly from a dataset?
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    Post subject: Re: how to find the no of records directly from a dataset?
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    Post subject:
Reply with quote

Hi Rameshbabu,

Try this link:
http://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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: sorry if it is tape DS then?
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us