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

Passing a dataset name


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Feb 11, 2009 12:56 pm
Reply with quote

Hi,
I want to pass a dataset name from a rexx exec to another rexx program, as i'm running a batch job the vput and vegete command in not working,so i thought of sending the dataset name to a jcl through the ispstart command but i dont know how to do it. please tell me how to pass the dataset name, also if any other solution to this requirement please suggest.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 11, 2009 1:50 pm
Reply with quote

What do you mean by "VPUT & VGET not working"? Have you notified IBM regarding this bug?

By the way, ISPSTART is capable of transferring parameters, as described in the fine manual.

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

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Feb 11, 2009 1:57 pm
Reply with quote

if i try to get some values through ispexec vget while running batch program, its throwing error saying the variable is not found
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 11, 2009 2:07 pm
Reply with quote

Is there a previous program that VPUT the variable?

Just to make it clear: ISPF services work for both background and foreground environment.

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

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Feb 11, 2009 2:11 pm
Reply with quote

ya i'm using vput in the previous program . but the vget in the next program showing the variable not found
Back to top
View user's profile Send private message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Feb 11, 2009 2:14 pm
Reply with quote

and also my requiremnt is i want to transfer the parameter to the ispstart command in the jcl not from the ispstart command to the rexx program.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 11, 2009 2:16 pm
Reply with quote

I should imagine that you are using the shared pool rather than the profile pool to store your variable.

Once the first REXX program finishes, the shared pool is deleted, so obviously will not be available for the second REXX program.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Feb 16, 2009 10:13 pm
Reply with quote

You probably have not explained your problem successfully, because I do not understand your problem.

Suggestion
1. provide the dataset name in ISPSTART command:
Code:
ISPSTART CMD(%myrexx  DSN('my.pds') )


2. and in the rexx program, use the parse instruction
Code:
PARSE ARG . 'DSN(' pds_name ')' .
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top