CCECHK@NUSVM.BITNET (Heng Kek) (08/17/90)
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.
RZA31LH@DB0ADW11.BITNET (Lutz Hamann) (08/17/90)
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: > >/**/ > >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 ?). >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 |
LOESCH@LAN.INFORMATIK.TU-MUENCHEN.DBP.DE (08/26/90)
RFC-822-Headers: Newsgroups: bit.listserv.asm370 Organization: Inst. fuer Informatik, TU Muenchen, W. Germany BODY TYPE: IA5TEXT test. please reply quick, danke. -- 3 Carlo "Lynx" v. Loesch is loesch @ informatik.tu-muenchen.de 3 3 Georgenstr. 142 or loesch % -"- @ unido.bitnet 3 .uucp 3 3 D-8 Muenchen 40 or loesch % -"- @ relay.cs.net 3 "I should've realized that luck is so undiscriminating it can even happen 2 me"