Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8620
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 IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us