I disagree, Ed. Reading a list of destinations from a "parmlib"-type dataset can be the easiest, and best way, to handle this situation. But updates to this dataset should be controled and audited, just like a PROCLIB or any other control-related library. Make provision for comments in the destination list and it doesn't have to degenerate into a boar's nest, nor does it need to be so specialized that nobody can understand it.

IIRC, the DYNAM subroutine from the CBTTAPE site has provisions for the appropriate SYSOUT dynamic allocation, and FREE=CLOSE can save a DYNAM call.

--
Rick
--
Remember that if you're not the lead dog, the view never changes.

-------------------------------------------------------------------------------------

Ed Gould wrote:

--- On Tue, 3/17/09, Elardus Engelbrecht <[email protected]> wrote:

From: Elardus Engelbrecht <[email protected]>
Subject: Re: COBOL and dynamic allocation (my two cents)
To: [email protected]
Date: Tuesday, March 17, 2009, 2:00 AM
Ed Gould wrote:

Personally I find it abhorrent to hard code anything
like destination in any programs. JCL is the ONLY way to go. It can be searched with multiple utilities (FILEAID and others) rather easily. This issue is that when (I did not say IF) a destination changes you must remember to recompile the program.

What about writing the COBOL (or any other language)
program so that destination(s) and other variable changes can be read from a dataset instead of hardcoding it or writing such things in JCL?

There is thus only one compile/test action and many changes
in the 'parameter' dataset on as needed base.

Any better ideas?


I wrote earlier about this issue the semi hidden file. It is not a practical 
thing as people leave the company and forget about this hidden file (more like 
undocumented). I truly like JCL as JCL is in a proclib where everybody can use 
file aid (or whatever) to scan. KISS methodolgy is this case for the it.



----------------------------------------------------------------------
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

Reply via email to