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 check whether a DS is a GDG base or VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Mon Apr 09, 2007 5:42 pm    Post subject: how to check whether a DS is a GDG base or VSAM file
Reply with quote

Hi all,
I need to check whether a particular dataset (given by the user ) is a GDG base,or a seq file or a VSAM file.I have tried with LISTDSI but when I am giving GDG base name then it is showing foll. error::
datset not found with reason code 0005 and return value of 16.
X = LISTDSI(DSNAME DIRECTORY)

If anyone can suggest a solution for this,it might be very helpful.
Back to top
View user's profile Send private message

mrdilipchand

New User


Joined: 20 Feb 2007
Posts: 12
Location: banglore

PostPosted: Mon Apr 09, 2007 6:32 pm    Post subject:
Reply with quote

hi
am not sure how to use LISTDSI, but using LISTDS we can get it.
/*rexx*/
COMPONENT = E0078CE.DEATH.CLAIMS.TRHST
"LISTDS '"COMPONENT"' M"

Output :
E0078CE.DEATH.CLAIMS.TRHST
--LRECL--DSORG-
** VSAM
--VOLUMES-BLKSIZE
**
let me know is there any other way to get it.
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: Mon Apr 09, 2007 7:18 pm    Post subject:
Reply with quote

IDCAMS LISTCAT reveals all
Back to top
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Mon Apr 09, 2007 8:24 pm    Post subject:
Reply with quote

I have tried a lot,but not able to get the dataset info'n of a GDG base.It is always saying "Invalid dataset". If anyone has an idea then kindly suggest.
Input is any dataset name and it should tell whether its a GDG base or a VSAM or a sequential file.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Apr 09, 2007 9:17 pm    Post subject: Re: how to check whether a DS is a GDG base or VSAM file
Reply with quote

expat is right.

If the dataset is a GDG Base, then LISTCAT returns:

GDG BASE ------ entry name
IN-CAT --- catalog name

If the dataset is a QSAM or PDS file, then LISTCAT returns:

NONVSAM ------- entry name
IN-CAT --- catalog name

If the data is VSAM, then LISTCAT returns:

CLUSTER ------- entry name
IN-CAT --- catalog name
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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