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 know the given file is KSDS or ESDS ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mdineshkumar

New User


Joined: 20 Sep 2005
Posts: 4

PostPosted: Wed Feb 20, 2008 4:20 pm    Post subject: How to know the given file is KSDS or ESDS ?
Reply with quote

How to know the given file is KSDS or ESDS without using File-aid or ListCAT?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Feb 20, 2008 4:24 pm    Post subject:
Reply with quote

find the jcl that allocated the file.

why would you not want to use a utility whose sole purpose is to inform you of the files' attributes.

Is this another silly question like how to open a file without opening it?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Feb 20, 2008 4:24 pm    Post subject:
Reply with quote

One has an index component and the other does not.
Other than relying on naming conventions, I don't see how you could....
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Feb 20, 2008 6:33 pm    Post subject:
Reply with quote

Addition to CICS Guy reply -

Hard way -
Write a program (say COBOL) and you will come to know.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 23, 2008 4:13 am    Post subject: How to know the given file is KSDS or ESDS ?
Reply with quote

An Assembler program, which issues a VSAM TESTCB Macro, specifying an ATRB keyword of ESDS or KSDS, will give you the answer.

Refer to the following link -

http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/DGT2D540/CCONTENTS?DT=20070427024428

HTH....

Regards,

Bill
Back to top
View user's profile Send private message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Sun Aug 02, 2009 9:57 pm    Post subject:
Reply with quote

Hi All,

Do we have the Key and data component for the ESDS as well??

As far as i know only KSDS has the two components.
So if we do a TSO option 3.4, we can check the type vsam file.

I think the problem will be to differentiate RRDS and ESDS.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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