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 find whether a member of pds is already exists or not

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
anilsanda

New User


Joined: 07 Jun 2007
Posts: 15
Location: chennai

PostPosted: Fri Jun 22, 2007 12:37 pm    Post subject: how to find whether a member of pds is already exists or not
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 22, 2007 1:23 pm    Post subject:
Reply with quote

Try LISTDS instead of LISTDSI

or look at LM services in the ISPF books.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Jun 22, 2007 2:04 pm    Post subject:
Reply with quote

or SYSDSN.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1534
Location: Andromeda Galaxy

PostPosted: Fri Jun 22, 2007 2:34 pm    Post subject:
Reply with quote

You can also say

Code:


M membername



in the command line after selecting the pds in which you need to search
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Jun 22, 2007 3:44 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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