Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us