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
 
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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