View previous topic :: View next topic
|
Author |
Message |
Ninish
New User
Joined: 08 Dec 2006 Posts: 3 Location: Bnagalore
|
|
|
|
Hi,
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?? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Ninish
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.
Dave |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Quote: |
And this PGM is shld be scheduled to run every day |
In production?
Maybe the best and/or easiest way to do that is to build a (interpreted) SAS program which will every time respond to your daily needs.
Prerequisites : to have SAS installed, and to know the basis of SAS. |
|
Back to top |
|
|
|