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
 
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 How to display offset thru cobol prog... tvinodkumar7 CICS 1 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm

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