Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic Creation of a cobol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Dynamic Creation of a cobol program
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    Post subject: Re: Dynamic Creation of PGM
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: 456
Location: Belgium

PostPosted: Sat Dec 16, 2006 5:04 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us