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
 
To find DISP parameter

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

New User


Joined: 22 Feb 2008
Posts: 5
Location: Hyderabad

PostPosted: Sun Aug 24, 2008 10:18 am    Post subject: To find DISP parameter
Reply with quote

Hi ,
How can we find the DISP parameter of a Given DATASET using REXX.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Aug 24, 2008 10:31 am    Post subject:
Reply with quote

Take a look at the JFCDISP field within the JFCB Data Area.

O.
Back to top
View user's profile Send private message
padmasriprasad

New User


Joined: 22 Feb 2008
Posts: 5
Location: Hyderabad

PostPosted: Mon Aug 25, 2008 11:01 pm    Post subject: Reply to: To find DISP parameter
Reply with quote

Thanks ofer..

I have gone through the link which you have provided, could you please explain how can i use them in my REXX program...or else provide me a link where i can have the related info.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Aug 25, 2008 11:42 pm    Post subject: Reply to: To find DISP parameter
Reply with quote

Quote:
How can we find the DISP parameter of a Given DATASET using REXX.


could You please elucubrate on your requirement

... are You trying to find out how the dataset is allocated to Your job step ?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Tue Aug 26, 2008 1:03 am    Post subject: Reply to: To find DISP parameter
Reply with quote

If you can run it in TSO, you can use the LISTA ST command.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 26, 2008 2:10 am    Post subject:
Reply with quote

Hello,

Quote:
I have gone through the link which you have provided, could you please explain how can i use them in my REXX program...or else provide me a link where i can have the related info.
That is the link to the related info. . .

You need to more clearly explain what you are looking for. What is your meaning of "a given dataset"? Any example would probably help clarify what you want to know.
Back to top
View user's profile Send private message
padmasriprasad

New User


Joined: 22 Feb 2008
Posts: 5
Location: Hyderabad

PostPosted: Tue Aug 26, 2008 10:00 am    Post subject: Reply to: To find DISP parameter
Reply with quote

Given dataset means
Suppose i have a dataset called "savt.i1.temp.data"
i will read this dataset name into a variable say DSN
By using this variable(DSN) in REXX Program i want to know the DISP PARAMETER of the dataset "savt.i1.temp.data" whether it is new old shr or mod
i have a requirement to process according to the DISP parameter
Thanks for your reply
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 26, 2008 10:05 am    Post subject:
Reply with quote

Hello,

A dataset that is on a dasd volume and is not in use has no DISP. It merely exists.

Disposition is determined by the task(s) allocating the dataset. Depending on how a dataset is to be used, it may be allocated using different DISP parameters.

You cannot use a dataset name as "input" this way.

If you explain your requirement, someone may have a suggestion. What will your code do depending on the DISP?
Back to top
View user's profile Send private message
padmasriprasad

New User


Joined: 22 Feb 2008
Posts: 5
Location: Hyderabad

PostPosted: Tue Aug 26, 2008 9:52 pm    Post subject: Reply to: To find DISP parameter
Reply with quote

Iam copying datasets...if a dataset with the DISP parameter as N C D then no need to copy the dataset ...simply i can change the name of the dataset...Based on the disp parameter i need to decide whether i need to copy the contents of one dataset to other or i have to replace it with new name...
EX savt.new.dataset disp=N C D i need to replace the dataset with new name say ISDN777.dataset ...to do this i need to know the disp parameter of the dataset "savt.new.dataset" through rexx
This is my requirement.. plse help
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 26, 2008 10:02 pm    Post subject:
Reply with quote

Hello,

While your question/requirement is completely clear to you it is not to others.

Please post the complete jcl from an example execution of how your process would be submitted. I realize it does not yet exist, but you can post what you intend to submit once you have code to support it.

Keep in mind that if you are copying an existing dataset, the DISP cannot be (new, cat, del) . . .
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Tue Aug 26, 2008 10:53 pm    Post subject: Reply to: To find DISP parameter
Reply with quote

<wild_guess>
I think you have confused everyone by using DISP as a parameter to your rexx program. It is a common parameter in JCL.

You can use the PARSE ARG command to get the parameters passed to a rexx program. But instead of an equals sign, such as DISP=, you will probably want to use parenthesis, such as DISP(N C D)
</wild_guess>
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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

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