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
 

 

Creating diff number of files thru jcl and cobol at runtime

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Creating diff number of files thru jcl and cobol at runtime
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

Site Director


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

PostPosted: Tue Apr 15, 2008 12:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


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