Using REXX output from ASSEMBLE. 
Author Message
 Using REXX output from ASSEMBLE.

Greetings again,
   A coupla days ago I posted a problem about directing
REXX output to an ASSEMBLE program.  I'd like to thank
the 2 people who responded.  However, I think I may have
been ambiguous and I apologise.
   I need to modify an ASSEMBLE program to call a REXX
program which processes a file and outputs the results
to the terminal.  In other words, I'm running the
ASSEMBLE program to call the REXX program and not the
other way around.  The output of the REXX program may
be very large - 3000 records may be expected, depending
on the size of the file it processes.  To give an idea
of the REXX file, the following is a gist:

/**/

Do Until ....
   :
  Say OUTPUT
End
Exit

My question is: how may I get access to the variable,'OUTPUT',
from the ASSEMBLE program?
A possible solution I thought of was: to send OUTPUT to the
program stack and then get the ASSEMBLE prog to read the stack,
but I'm worried about overflowing the stack.  And also, how
do I read the stack from the ASSEMBLE prog?

Thanks for your attention.

Sincerely
Heng Kek
National University of Singapore.



Tue, 02 Feb 1993 14:04:01 GMT  
 Using REXX output from ASSEMBLE.

  Hallo Heng |

I'm a systemprogrammer of Academy of Science of EAST-Berlin and member of
this list since several days. But I have been dealing with Assembler-
programming in VM/CMS for a longer time. I'll try to answer your questions |

On Fri, 17 Aug 90 11:53:14 SST Heng Kek said:

Quote:

>/**/

>Do Until ....
>   :
>  Say OUTPUT
>End
>Exit

>My question is: how may I get access to the variable,'OUTPUT',
>from the ASSEMBLE program?

To get a value from a rexx-exec or to modify it, REXX has a EXECCOMM-Interface.
For beginners it's not easy to use it, that's why some times ago I wrote a
macro. If you want, I'll send you the macro. But the condition for using this
EXECCOMM-Interface is: Being in an REXX or EXEC2-Environment |
I think it would be easier to rewrite the exec (for instance instead SAY an
EXECIO), as to write tricky assembler-programs (may be I did not understand
your basic problem ?).

Quote:
>A possible solution I thought of was: to send OUTPUT to the
>program stack and then get the ASSEMBLE prog to read the stack,
>but I'm worried about overflowing the stack.  And also, how
>do I read the stack from the ASSEMBLE prog?

To read a stack from an assembler-program use the WAITRD-Function via SVC 202.
For more information ask your system-engineer (where to read the description).
Hope this helps a little |
                            Bye, bye          Lutz

P.s. We are not a full EARN-member yet, so our node is unknown to most of the
     world (but we hope to stay it in september). So please, any answers do
     n o t  send to me directly, but through the list |



Tue, 02 Feb 1993 21:59:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using REXX output from ASSEMBLE.

2. How to Assemble+Link Compiler Output ?

3. ??? Redirecting output to an MLE (VX-REXX or VisPro REXX)

4. using debug.exe to assemble

5. link MASM assembled obj files with BCC55 ones using borland ilink32

6. Outputting info from awk and using the info to name the awk output file

7. OUTTRAPping the TPUT output in REXX

8. Output from REXX directed to an ASSEMBLER prog

9. VX-REXX... Display Output

10. Capturing Trace output ( OS/2 REXX )

11. Controlling printer output via OS/2 Rexx

12. Output of commands to REXX variables

 

 
Powered by phpBB® Forum Software