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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


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