MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IRXJCL Has Problems with Rexx Allocate Statement

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
MVSDude
Beginner


Joined: 10 Jun 2008
Posts: 6
Topics: 4

PostPosted: Tue Jul 22, 2008 2:14 am    Post subject: IRXJCL Has Problems with Rexx Allocate Statement Reply with quote

Gents:

I successfully allocate a file to a ddname inside a Rexx routine using IKJEFT01. The same Rexx routine
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Jul 22, 2008 4:57 am    Post subject: Reply with quote

Absolutely correct - you need to use IKJEFT01 (Batch TSO) to execute TSO commands.
IRXJCL does not allow the execution of TSO commands.

Quote:
I must use IRXJCL in order to pass arguments to the Rexx routine (a DSN that must be resolved at run time) and IKJEFT01 doesn
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jul 22, 2008 10:29 am    Post subject: Reply with quote

Mvsdude,

You also might want to read this

http://www.mvsforums.com/helpboards/viewtopic.php?t=5276
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Tue Jul 22, 2008 10:35 am    Post subject: Reply with quote

For additional read check this out

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4B460/APPENDIX1.1?DT=20050714030239
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Jul 22, 2008 11:52 am    Post subject: Reply with quote

If you are running in batch then just allocate your datasets using JCL statements. Cuts down your Rexx code and calls to TSO.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Jul 22, 2008 3:32 pm    Post subject: Reply with quote

MD, to sum this up, there is no such thing as a Rexx allocate command. In fact there are no Rexx commands; Rexx always passes commands to someone else to handle the command. TSO is the system that provides the ALLOC command and since Rexx requires some other system to handle commands (sometimes called a command environment, subcommand environment, subcom environment), when you try to pass the command to the current environment and it does not recognize the command, you get a -3. You will most frequently see this when trying to execute TSO commands without TSO or ISPF commands without ISPF. See also the Address statement to see how to switch command environments.

Just as an additional note, TSO's program name is IKJEFT01 (or similar) so you any reference to an IKJEFTxx name is also a reference to TSO.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group