|  Posted: Tue Jul 22, 2008 4:57 am    Post subject: |   | 
			
				| 
 | 
			
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kingo Intermediate
 
 
 Joined: 01 Sep 2006
 Posts: 167
 Topics: 40
 Location: chennai
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Nic Clouston Advanced
 
 
 Joined: 01 Feb 2007
 Posts: 1075
 Topics: 7
 Location: At Home
 
 | 
			
				|  Posted: Tue Jul 22, 2008 11:52 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| semigeezer Supermod
 
 
 Joined: 03 Jan 2003
 Posts: 1014
 Topics: 13
 Location: Atlantis
 
 | 
			
				|  Posted: Tue Jul 22, 2008 3:32 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		|  | 
	
		|  |