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: 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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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