Hi,
I want to write a REXX program that issues commands to DBRC and examines the replies.
The only way I can think to do this is to write out my command(s) to a file. CALL *(DSPURX00) which reads in said file via the SYSIN DD card and outputs to a file on the SYSPRINT DD. The program would then read the results back in.
This seems to be a terribly clumsy and inelegant method. I was wondering if there was a better way. For example, you can issue IDCAMS commands and capture the output into a stem variable with OUTTRAP.
My program is going to 'interact' with DBRC and so will need to issue many many commands. The performance would be much improved if I could only limit all the file reads and writes.
Any help would be most appreciated.
Many thanks.
Ian.
I want to write a REXX program that issues commands to DBRC and examines the replies.
The only way I can think to do this is to write out my command(s) to a file. CALL *(DSPURX00) which reads in said file via the SYSIN DD card and outputs to a file on the SYSPRINT DD. The program would then read the results back in.
This seems to be a terribly clumsy and inelegant method. I was wondering if there was a better way. For example, you can issue IDCAMS commands and capture the output into a stem variable with OUTTRAP.
My program is going to 'interact' with DBRC and so will need to issue many many commands. The performance would be much improved if I could only limit all the file reads and writes.
Any help would be most appreciated.
Many thanks.
Ian.