IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Handling MVS REXX in OMVS REXX


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mahe2310

New User


Joined: 17 May 2007
Posts: 5

PostPosted: Thu May 17, 2007 6:20 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Thu May 17, 2007 6:24 pm
Reply with quote

By OMVS I assume that you mean USS - Unix Systems Services environment.
Back to top
View user's profile Send private message
mahe2310

New User


Joined: 17 May 2007
Posts: 5

PostPosted: Thu May 17, 2007 6:28 pm
Reply with quote

Yes... By OMVS i mean an UNIX enviroment...
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 17, 2007 6:35 pm
Reply with quote

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
View user's profile Send private message
mahe2310

New User


Joined: 17 May 2007
Posts: 5

PostPosted: Thu May 17, 2007 8:13 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 17, 2007 9:43 pm
Reply with quote

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
View user's profile Send private message
mahe2310

New User


Joined: 17 May 2007
Posts: 5

PostPosted: Fri May 18, 2007 10:47 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
Search our Forums:


Back to Top