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.da ta1
ibmmahine1.it.customers.da ta2
ibmmahine1.it.customers.da ta3
ibmmahine1.it.customers.da ta4
ibmmahine1.it.customers.da ta5
ibmmahine1.it.customers.da ta6
ibmmahine1.it.customers.da ta7
ibmmahine1.it.customers.da ta8
ibmmahine1.it.customers.da ta9
ibmmahine1.it.customers.da ta10
Thanks.
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.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
ibmmahine1.it.customers.da
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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?