View previous topic :: View next topic
|
Author |
Message |
anilsanda
New User
Joined: 07 Jun 2007 Posts: 15 Location: chennai
|
|
|
|
hi,
i want to find out whether a member of a pds is already existing or not in rexx., if exists how to delete it..could u help me by quoting some syntax to do it.......i found out LISTDSI function in rexx....but it is useful in finding out only the information regarding pds...but it is not giving any information regarding member a pds...
rec = listdsi(pds)-------it is giving out information
rec = listdsi (pds(member))-----it is not responding |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Try LISTDS instead of LISTDSI
or look at LM services in the ISPF books. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
or SYSDSN. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
You can also say
in the command line after selecting the pds in which you need to search |
|
Back to top |
|
|
amitava Warnings : 1 Active User
Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Hey anilsanda,
Just refer the following sample code -
Code: |
dsname='PDSNAME' || '(' || memname ||')'
if (sysdsn("'"dsname"'") = 'OK') then
Do Normal Processing
else do
if (sysdsn("'"dsname"'") \= 'MEMBER NOT FOUND') then
say 'Member not present ...'
else
say 'Error while processing the PDS ' PDSNAME
end |
|
|
Back to top |
|
|
|