I want to create a dynamic PGM using the inputs given in the online.
Inputs will be given thru online i.e., some of the Selection Criteria and
the Output layout.. etc... Depending on these parameters, i want to
create a PGM which will access the VSAM Database and produce an
extract. And this PGM is shld be scheduled to run every day.
Currenty im having a knwldge of CICS, VSAM,
COBOL and lil bit of REX. Is it possible to do smethin like this?? or whats the better way to do it??
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
I don?t think your going to be able to create a dynamic cobol program from parameters from an on-line, although there are several packages out there that do this, my guess is that it will be to much of a problem to write a cobol generator for your need.
More likely, what you can write is a cobol program that will accept these as parameter input, have the cobol program interrogate them and produce the output.
Many years ago ~ 1980, I wrote a program similar to convert Burroughs files to IBM files. (Burroughs COMP-3 fields could start or end on the half byte). I read the copybooks, built a cobol table with the field names and calculated offset and field lengths, interrogated what we had to move to where and moved the data, sometimes having to go through a conversion routine from one to another data type.