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

Creating diff number of files thru jcl and cobol at runtime


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raghabendra das

New User


Joined: 15 Apr 2008
Posts: 1
Location: mumbai

PostPosted: Tue Apr 15, 2008 11:48 am
Reply with quote

I am in situation where i dont know how many files (actually those are reports) exactly i will need while coding a program. So it may happen that i need to generate 10 files this month and may require 15 files to generate for next month.

So i want to code JCL and write cobol program which will handle it on runtime. Can anyone suggestt any solution for this? Also i dont mind writting a code in some ither language like REXX or Easytrieve.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 15, 2008 12:17 pm
Reply with quote

Hello raghabendra das and welcome to the forums,

For us to help, you probably need to post some actual details of your requirement.

One simple answer is to write your program with enough SELECT and FD statements to accomodate the maximum you will need to create from one execution. As these are all reports, the jcl can be either SYSOUTs or DUMMYs.

At runtime, the needed outputs could be opened, the others not.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 5
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top