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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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