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
 

 

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: 2033
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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