IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rexx code for dataset presence


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Dec 31, 2008 2:37 pm
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: 1287
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 2:41 pm
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
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: 1287
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 3:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top