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
 

 

Rexx code for dataset presence

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

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed Dec 31, 2008 2:28 pm    Post subject: Rexx code for dataset presence
Reply with quote

Note : May be known and repeated topic, but didn't get expected results in form seach

How to verify whether a Dataset is present or not (either DS/PS) through rexx. i want to delete if its present else i want to create

please provide me same code
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: Wed Dec 31, 2008 2:37 pm    Post subject:
Reply with quote

Quote:
please provide me same code

Please provide me with daily rate 0f 750 euro.

It is not clear what you want to do.

If the file is present - you want to delete it and then re allocate it or do you only want to delete it.

If the file is not present, then you want to allocate it.

Please clarify.

And DO NOT ask for code
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 2:41 pm    Post subject: Reply to: Rexx code for dataset presence
Reply with quote

Veena,

Quote:
How to verify whether a Dataset is present or not (either DS/PS) through rexx.


You can use SYSDSN for your requirement.

something like this

Code:
ADDRESS "TSO"
   NAME= your dataset
IF SYSDSN(NAME)='OK' THEN
   DO
    statements
       END
Back to top
View user's profile Send private message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Wed Dec 31, 2008 3:19 pm    Post subject: Rexx code for dataset presence
Reply with quote

Aaru Vedam

really thanks alot for your help, its working 100%

thanks alot once again
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 3:36 pm    Post subject: Reply to: Rexx code for dataset presence
Reply with quote

Veena,

Quote:
thanks alot once again


You are welc icon_biggrin.gif me.
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


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