View previous topic :: View next topic
|
Author |
Message |
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
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 |
|
|
mrdilipchand
New User
Joined: 20 Feb 2007 Posts: 12 Location: banglore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IDCAMS LISTCAT reveals all |
|
Back to top |
|
|
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|