Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
Your terminology is confused. COBOL source is provided to the compiler via the SYSIN DD. The object module produced by the compiler must then be link-edited to be executed; IBM provides compile, compile and link, and compile, link, and go procs; your shop will have its own version of these. "Calling" a module is something entirely different; the compiler never calls a program that it compiles.
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
The loader runs the object code - 2nd part of compile and go - there is no link. Therefore, if a program has references that must be resolved, it cannot be "compile and goed" (compile and went?).
That having been said, there may have been advances in the 20-ish years since I did a compile and go, in which case i am wrong and someone will (politely) advise.
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
I believe - it is still the same, the COBOL job step produces an object module that is input to the loader. If the COBOL program refers to any data sets, one must supply the DD statements that define these data sets.
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
I think that what Mr. Phrzby is thinking of is static linking (I've never tried to execute an object module with dynamic links, so I don't know if that would work or not. Yes, it would be fairly trivial to set up and run a test; I'm just insufficiently motivated to actually do so.)
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
dick scherrer wrote:
Quote:
Yes, it would be fairly trivial to set up and run a test; I'm just insufficiently motivated to actually do so.)
Hmmmm . . . . I wonder just how we might institute a "tip jar"
Well, a few myriads of rupees would work wonders...
More seriously, though, I've got enough on my plate at the moment. We've decided not to renew our license with Compuware, and are replacing File-AID with File Mangler -- err, Manager -- and people are just starting to realize that the conversion takes more than changing PGM=FILEAID to PGM=FILEMGR. Likewise, next year our CA license runs out and won't be renewed; only Issuance (promotion from development to test to production) has taken it seriously, everyone else essentially saying, "'Panvawhat'? Do we use that stuff? Well, we'll think about it...in October".