How to run a COBOL program from REXX EXEC?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

How to run a COBOL program from REXX EXEC?

Post by Satan Singh Rawat »

Hi,

It might be trivial to ask but I'm not sure if this can be done. Can you please let me know how can we run a COBOL program from a private load library using REXX. Any pointer is appreciated.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: How to run a COBOL program from REXX EXEC?

Post by nicc »

What do your colleagues say? What do your support say? What manuals have you referred to? Have you searched the forum, other forums, the internet? Assuming you have done all this (which is the correct order of action) - what are the problems that you are having?
Regards
Nic
Vijay Pratap Singh
New Member
Posts: 5
Joined: Thu Jul 31, 2014 4:54 pm

Re: How to run a COBOL program from REXX EXEC?

Post by Vijay Pratap Singh »

You can use ADDRESS LINKMVS or ADDRESS LINKPGM to call a program. Details are at this link: http://publibz.boulder.ibm.com/cgi-bin/ ... 0714012324
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

Re: How to run a COBOL program from REXX EXEC?

Post by Satan Singh Rawat »

nicc wrote:What do your colleagues say? What do your support say? What manuals have you referred to? Have you searched the forum, other forums, the internet? Assuming you have done all this (which is the correct order of action) - what are the problems that you are having?
Collegues are not that supportive for such questions. I have searched but I was not able to make a good hit. Some of the forums are not working in office so I posted here.
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

Re: How to run a COBOL program from REXX EXEC?

Post by Satan Singh Rawat »

Vijay Pratap Singh wrote:You can use ADDRESS LINKMVS or ADDRESS LINKPGM to call a program. Details are at this link: http://publibz.boulder.ibm.com/cgi-bin/ ... 0714012324
Thank you Vijay. I shall work with this.
Satan Singh Rawat
New Member
Posts: 8
Joined: Sun Jul 20, 2014 12:54 pm

Re: How to run a COBOL program from REXX EXEC?

Post by Satan Singh Rawat »

I've used the below syntax and it is working well:

Code: Select all

/* REXX */ 
Address LINKMVS "MYPROG PARAMETERS" 
Thanks all! :)
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: How to run a COBOL program from REXX EXEC?

Post by zprogrammer »

Also do read about TSO command ALLOC
zprogrammer
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”