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
 
Passing a dataset name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Passing a dataset name
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: 2360
Location: Israel

PostPosted: Wed Feb 11, 2009 1:50 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Feb 11, 2009 2:07 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 11, 2009 2:16 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Feb 16, 2009 10:13 pm    Post subject: Reply to: Passing a dataset name
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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