I need to directly execute a USS programme in an MVS programme written in assembler. The MVS programme is executed by a batch job.
I cannot submit another job to execute the USS programme and the executing programme (the MVS programme) must be written in assembler. Rexx or other languages are not options for me.
After spending a lot of time searching the IBM knowledge centre, I figured that the system callable service BPX1SPN (or BPX4SPN) seems to me best bet.
However, I got a problem when doing an experiment:
Since the real USS programme is not ready yet, I wrote a hello world LE C programme which creates a text file in my home directory and writes something in it. I wanted to use the message file to confirm that the USS programme was correctly executed.
The problem (symptom) is that: BPX1SPN returned successful code (RC=0) and also gave me the USS process ID for the execution of the programme. But the message file wasn't created at all. Do you have any experience working with BPX1SPN? Did you have similar problem when using it? Or, any ideas? suggestions? Thanks!
Sorry for the nagging. Just trying to explain it clearly.