View previous topic :: View next topic
|
Author |
Message |
@shim
New User

Joined: 28 Oct 2021 Posts: 6 Location: India
|
|
|
|
Hello,
I have a vendor program which generally runs as a batch program with EXEC PGM=xxxx,PARM=(xxx). For some specific requirement, I am calling this program through a COBOL program after creating a dynamic TSO environment through IKJTSOEV and allocate all the required files by using TSO ALLOC and pass the control through CALL *(xxxxx). This runs fine. But there are some control paameters which is sent through the PARM. I am not able to figure out how to pass this parms to the target program. Could you please share any direction or advice which I can explore further? Thanks for your guidance in advance.
Regards,
AP |
|
Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2453 Location: Silicon Valley
|
|
|
|
re: generally runs as a batch program with EXEC PGM=xxxx,PARM=(yyy)
I think you use the TSO CALL command:
Code: |
Addres TSO "CALL *(xxxx) yyy" |
|
|
Back to top |
|
 |
@shim
New User

Joined: 28 Oct 2021 Posts: 6 Location: India
|
|
|
|
Pedro wrote: |
re: generally runs as a batch program with EXEC PGM=xxxx,PARM=(yyy)
I think you use the TSO CALL command:
Code: |
Addres TSO "CALL *(xxxx) yyy" |
|
Thank you Pedro. I will test this as per your suggestion.
Regards,
AP |
|
Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2453 Location: Silicon Valley
|
|
|
|
I have not done it for some time, if it does not work try also using single quotes:
Code: |
Address TSO "CALL *(xxxx) 'yyy'" |
|
|
Back to top |
|
 |
@shim
New User

Joined: 28 Oct 2021 Posts: 6 Location: India
|
|
|
|
Pedro wrote: |
I have not done it for some time, if it does not work try also using single quotes:
Code: |
Address TSO "CALL *(xxxx) 'yyy'" |
|
Just to update and thanks Pedro it works fine with single quotes.
Regards,
AP |
|
Back to top |
|
 |
|