Link to home
Start Free TrialLog in
Avatar of sch626
sch626

asked on

Mainframe - How to create several datasets using a loop (conditional programming)

I'm a newbie at the mainframe and all the terms are confusing.  
Just the fact that in submitting a job you can have jcl, sas and cobol together and then you have a whole bunch of mainframe utilities..... "can anyone say confusing".

My Question:
Mainframe - How to create several datasets using a loop (conditional programming)
What do I need to use JCL, Cobol....

so when I run it I can assign a number say 10 for example:
ibmmahine1.it.customers.data1
ibmmahine1.it.customers.data2
ibmmahine1.it.customers.data3
ibmmahine1.it.customers.data4
ibmmahine1.it.customers.data5
ibmmahine1.it.customers.data6
ibmmahine1.it.customers.data7
ibmmahine1.it.customers.data8
ibmmahine1.it.customers.data9
ibmmahine1.it.customers.data10

Thanks.


ASKER CERTIFIED SOLUTION
Avatar of sufianmehmood
sufianmehmood
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giltjr
JCL is very basic and has looping capabilities.

If you have SAS you can do this.  Do you have access to batch TSO and REXX?  

However, is there a special reason why you need to have these files pre-allocated?

Avatar of sch626
sch626

ASKER

I was asking for JCL code and I didn't get any..
That is because you can't do it in JCL.  JCL is not a programming language.  You need a scripting/programming language, such as REXX, TSO Clist, Assembler, or SAS.

REXX, TSO Clist, or SAS would be the easiest and in that order.

If you still need to do this, you need to let us know what scripting/programming languages you have access to.