Andy Robertson wrote:
On Wed, 22 Mar 2006 08:46:05 -0600, McKown, John
<[EMAIL PROTECTED]> wrote:
I may have misunderstood what Andy meant (likely in fact). However, I do
want to state that you call CALL a COBOL subroutine from an HLASM
program.
No, you didn't misunderstand, It's just that I didn't want the extra
complexity.
A LE-enabled assembler program follows LE rules and can call C or COBOL or
PL/I subprograms.
However
1) I've never tried accessing sych a program thru COBOL dynamic CALL,
which is what we are doing here
2) writing LE enabled assembler is a whole new and unnnescessary skill set.
1. Accessing an LE-conforming Assembler program through COBOL
dynamic call works the same as accessing a COBOL program that way.
2. Writing LE-conforming Assembler is very useful if you want / need
to use any of:
* LE callable services
* z/OS UNIX system services
* C functions;
Note: an LE-conforming Assembler program can call C functions
directly; you do not need a whole C subroutine!
<ad type="shameless self-promotion">
Clearly you need me to come to the UK and teach
"Using LE Services for z/OS" (3 days) which includes
how to write LE-conforming Assembler and how to
call the LE services from COBOL, Assembler, PL/I,
and C, covering all the callable services.
Details at:
http://www.trainersfriend.com/Language_Environment_courses/m512descr.htm
"InterLanguage Communication in z/OS" (3 days)
which includes how to define elementary items,
structures, and arrays in COBOL, Assembler, PL/I,
and C; how to call statically, dynamically, and
DLL-ly (?) amongst all those languages; how
to create and invoke DLLs in all these languages.
Details for the base course at:
http://www.trainersfriend.com/Language_Environment_courses/m220descr.htm
[the z/OS version due out in the next 2-3 weeks.]
And maybe even our z/OS for UNIX series (it's such
a long trip I may as well get a lot done)!
</ad>
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
http://www.trainersfriend.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html