Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invoking C++ Compiler from REXX

Status
Not open for further replies.

ShankarReddy4u

Programmer
Aug 2, 2007
2
US
Hi,
I want to invoke C++ compiler on MVS running z/OS using REXX program. Program should compile a file reciding on OMVS i.e HFS path.
I have trouble in setting SYSIN and SYSLIN to HFS paths.
Using "Allocate" command i get "File already in use" error. How can i assign a HFS path to SYSIN & SYSLIN?

Any help is appreciated.

Regards,
Shankar
 

"File in use..."

Are you doing your ALLOC with REUSE? I think you are not.

'REUSE' says "even if this file is already allocated, I don't care; FREE it and give it to me".

"ALLOC FI(SYSIN) DA(....) SHR REU"

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Thanks for the reply.

Actually, I do not want to allocate any specific Dataset?
I already have the C++ file on HFS. I want to compile it using REXX. How can i make SYSIN point to this HFS file so that C++ compiler program will be able to use it?


Regards,
Shankar
 

You're missing the point.

ALLOC is the TSO-equivalent of a JCL DD statement. You must point SYSIN at the source-to-be-compiled. You can't because SYSIN (the FILE or DDNAME) is already being used for something else (file in use). You must either FREE FI(SYSIN) before pointing it at your source or you must ALLOC...REUSE.


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top