View previous topic :: View next topic
|
Author |
Message |
Harry_harran
New User
Joined: 25 Nov 2009 Posts: 10 Location: India
|
|
|
|
Could you please help me how a COBOL program can be called through a REXX program. And how the libraries can be specified in the JCls. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Well, in any type of address space your exec may be running in, the Address LINKMVS command will always work.
If your exec is running in a TSO address space then you can use the same commands as you would in TSO. If ISPF services are available, then the ISPF SELECT PGM command is also an option.
Harry_harran wrote: |
And how the libraries can be specified in the JCls. |
I have no idea what this means. |
|
Back to top |
|
|
Harry_harran
New User
Joined: 25 Nov 2009 Posts: 10 Location: India
|
|
|
|
Thanks superk.
I get it. Now, if suppose we have to pass some variable while after running the exec in TSO.
For expample, for getting the ip address for a specific address we use
TSO PING
and then we will give the web address inorder to get the IP address of the website.
So how to make it ask for the input values and how to pass the values to the COBOL program.
For my next question,
And how the libraries can be specified in the JCls.
If we want to execute a REXX program in batch and if that Rexx program call another COBOL program, then how it has to be coded in JCL.
Thanks,
Harry. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
hmmmmm
I wonder to which level in remedial z/OS architecture, elements and features
one must go
to answer the question posed by the TS.
funny, it seems that many think that rexx is a way of doing something on the mainframe
without knowing actually what is going on. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
i have thought about my previous post,
and have decided to make a correction:
FROM THIS:
I wonder to which level in remedial z/OS architecture, elements and features
TO THIS:
I wonder to what depths of remedial z/OS architecture, elements and features must we plunge |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Harry_harran wrote: |
If we want to execute a REXX program in batch and if that Rexx program call another COBOL program, then how it has to be coded in JCL. |
If you were to run the COBOL program as a "main" program in a job, you would certainly have to code a few DD cards for input or output files.
Now you have three possibilities:- Preallocate the files by adding the same DD cards to the REXX job.
- Allocate the files in the REXX program using the TSO ALLOCATE command.
- Use a mix of the 2 previous options.
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|