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
 

 

Issue while executing compiled rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 94
Location: India

PostPosted: Thu Sep 11, 2008 2:18 pm    Post subject: Issue while executing compiled rexx
Reply with quote

I compiled the following and executed. Its still not running. If i executed it without compiling it goes fine.

/****** REXX ************/
IF SYSDSN('XXXXXX.DATASET1') = 'OK' THEN
SAY 'THE DATASET U HAVE SPECIFIED IS AVAILABLE.'
ELSE
SAY 'THE DATASET U HAVE SPECIFIED IS NOT AVAILABLE.'
EXIT

Following are some more statements that create issue while running as a load , but run fine when executed normally. Also in the compile listing, these messages are listed as "Optimizing Stoppers".

"ISPEXEC LMINIT DATAID(INDD) DATASET('"PDSNAME"')"

"ISPEXEC LMOPEN DATAID("INDD") OPTION(INPUT)"

"ISPEXEC LMMLIST DATAID("INDD") OPTION(LIST) MEMBER(MEM)"

I am using the REXXCL proc from SYS.PROCLIB for compiling and I have given STUB as MVS while compiling.

I am able to pass arguments through this JCL through PARMS. Normal rexx commands are getting executed after compiling. But the statements that are listed as OPTIMIZING STOPPERS are not getting executed in compiled version.

Can anyone please let me know what does this OPTIMIZING STOPPERS refer to and what needs to be done for correcting this.
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2051
Location: Silicon Valley

PostPosted: Thu Sep 11, 2008 10:12 pm    Post subject: Reply to: Issue while executing compiled rexx
Reply with quote

The write up for SYSDSN in TSO Rexx Reference says this:
Quote:
You can use the SYSDSN function only in REXX execs that run in the TSO/E address space.


Similarly, the ISPF functions you want to run need an ISPF environment to run in.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Sep 11, 2008 11:14 pm    Post subject: Reply to: Issue while executing compiled rexx
Reply with quote

I'm confused because the poster said that the code ran fine without compiling (i.e. interpreted) and is only having a problem running after being compiled.

I know nothing about compiled REXX, but am I right to presume that the ISPF components for the ISPEXEC calls have to be made available to the link-editor, the same way they would for a COBOL program, for example?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Sep 12, 2008 12:34 am    Post subject: Reply to: Issue while executing compiled rexx
Reply with quote

are You aware of the issues involved when invoking ispf services in a compiled rexx

the full instructions are in the official ispf docs

for basic hints
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2051
Location: Silicon Valley

PostPosted: Fri Sep 12, 2008 1:33 am    Post subject: Reply to: Issue while executing compiled rexx
Reply with quote

Quote:
I'm confused because the poster said that the code ran fine without compiling (i.e. interpreted) and is only having a problem running after being compiled.


It must have run fine when he ran it from his TSO userid. But did not work when run from a batch job. Aside from compiling, they are different environments.
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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