View previous topic :: View next topic
|
Author |
Message |
passion_sujesh
New User
Joined: 14 Mar 2008 Posts: 74 Location: India,Chennai
|
|
|
|
Hi,
I have an requirement in which i have to obtain the attributes of the VSAM file. I have a file as input (might be a ps file or VSAM file), i need to get the attributes of the file. I tried 'LISTDSI' function, it is working fine for PS files, but for VSAM files it is not working. Can any one tell me how to do this in rexx (find the type of file and get the attributes of the file).
My code:
FILEDD = 'INPUT FILE'
X=LISTDSI(FILEDD)
IF X=0 THEN
DO
SAY 'ERROR OCCURED' X
END
Thanks,
Sujesh. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
listcat |
|
Back to top |
|
|
passion_sujesh
New User
Joined: 14 Mar 2008 Posts: 74 Location: India,Chennai
|
|
|
|
Hi enrico,
How can we get the attributes of the VSAM file. I tried using "LISTC ENT("FILE2") NAME", i was able to find if the file was an vsam or not.
Thanks,
Sujesh. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You can use DSINFO to get the DSORG of a file, and then invoke either IDCAMS or LISTDSI accordingly. |
|
Back to top |
|
|
chowdhrykapildev
New User
Joined: 05 Aug 2009 Posts: 44 Location: Hyderabad
|
|
|
|
Hi Sujesh,
Try with this command.
"LISTCAT ENT("dsname")" ALL |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
An Assembler program, which uses the SHOWCB Macro, will return all the information that you need.
I'm not too sure if there's a REXX equivalent or not....
Bill |
|
Back to top |
|
|
|