IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dynamic Creation of a cobol program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ninish

New User


Joined: 08 Dec 2006
Posts: 3
Location: Bnagalore

PostPosted: Fri Dec 08, 2006 12:04 pm
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Dec 16, 2006 4:26 am
Reply with quote

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
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sat Dec 16, 2006 5:04 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top