|
View previous topic :: View next topic
|
| Author |
Message |
mahe2310
New User
Joined: 17 May 2007 Posts: 5
|
|
|
|
Hi all,
When i tried to execute a MVS REXX program through an OMVS REXX program, it fails for the ISPF commands. Please help me out.
Below i included the sample programs.
OMVS REXX PROG
/* REXX */
say 'Hi Sample REXX PROGRAM'
ADDRESS TSO "ex 'GY.REXX.PRACTICE(CALLS)' "
EXIT
MVS REXX PROG
ADDRESS ISPEXEC
"FTOPEN TEMP"
"FTINCL CODJOB"
"ftincl codskela"
"ftclose"
"vget (ztempf) shared"
ADDRESS TSO
"SUBMIT '"ZTEMPF"'"
RETURN |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
| By OMVS I assume that you mean USS - Unix Systems Services environment. |
|
| Back to top |
|
 |
mahe2310
New User
Joined: 17 May 2007 Posts: 5
|
|
|
|
| Yes... By OMVS i mean an UNIX enviroment... |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Does USS (OMVS) have access to TSO and/or ISPF services?
I'm just wondering if the OMVS exec needs to run the TMP first, then start ISPF and all of that, the same way you would need to from other environments like MVS or JES.
Maybe the process would need a "ADDRESS TSO ISPSTART CALLS" command? |
|
| Back to top |
|
 |
mahe2310
New User
Joined: 17 May 2007 Posts: 5
|
|
|
|
Can you tell me how i can modify this code to execute my MVS REXX application?
* REXX */
say 'Hi Sample REXX PROGRAM'
ADDRESS TSO "ex 'GY.REXX.PRACTICE(CALLS)' "
EXIT |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If you want to use ISPF services, then you need ISPF and all of its required datasets.
| Code: |
/* REXX */
say 'Hi Sample REXX PROGRAM'
ADDRESS TSO "ex 'GY.REXX.PRACTICE(CALLS)' "
EXIT
|
would become more like this:
| Code: |
/* REXX */
say 'Hi Sample REXX PROGRAM'
ADDRESS TSO "ALLOC DD(SYSPROC) DA('GY.REXX.PRACTICE') SHR REU"
ADDRESS TSO "ALLOC DD(ISPPROF) DA(ISPPROF) SHR REU"
ADDRESS TSO "ALLOC DD(ISPMLIB) DA(ISPMLIB) SHR REU"
ADDRESS TSO "ALLOC DD(ISPSLIB) DA(ISPSLIB) SHR REU"
... and so on ...
ADDRESS TSO "ISPSTART CMD(%CALLS) NEWAPPL(ISR)"
ADDRESS TSO "FREE DD(SYSPROC ISPPROF ....)"
EXIT
|
See this section 2.13 ISPF Services in Batch Mode in the z/OS V1R8.0 ISPF Dialog Developer's Guide for more details. |
|
| Back to top |
|
 |
mahe2310
New User
Joined: 17 May 2007 Posts: 5
|
|
|
|
Hi,
After including the code below
| Code: |
ALLOC DD(SYSPROC)
ALLOC DD(ISPPROF)
... so on ... |
, I got the following errors
| Code: |
* Message ISPG132 -/-ISPG132 message not found in 'ISPMLIB' library.
CMG999 Message ISPP001 - ISPP001 message not found in 'ISPMLIB' library.
Command ABENDed: code=U0999 rsn=FFFFFFFF |
Can you tell me why that error is cmg? |
|
| Back to top |
|
 |
|
|