How to create dynamic out datasets based on i/p records?
Posted: Mon Nov 22, 2010 8:03 pm
Hi,
My task is to create output datasets for each and every unique numbers present in my input file.
I have a input file which looks like this...
xxxxx 11001 xxxxxxxxxxxxxxxx
xxxxx 11002 xxxxxxxxxxxxxxxx
xxxxx 11003 xxxxxxxxxxxxxxxxx
xxxxx 11002 xxxxxxxxxxxxxxxxx
In this i have to dynamically create corresponding datasets for the unique numbers mentioned above.
for eg:
records which is having no as 11001 should be in one output dataset
records which are having 11002(here 2 records are there) should be in another out dataset...
The same scenario should continue for N no of records.... (in my case its max of 25)
Note: every time my unique numbers might change according to the input.... so i cant cross reference this with any hard coded data also.
I have no idea how far this can be done through JCL or cobol.
Thanks,
Maandi...
My task is to create output datasets for each and every unique numbers present in my input file.
I have a input file which looks like this...
xxxxx 11001 xxxxxxxxxxxxxxxx
xxxxx 11002 xxxxxxxxxxxxxxxx
xxxxx 11003 xxxxxxxxxxxxxxxxx
xxxxx 11002 xxxxxxxxxxxxxxxxx
In this i have to dynamically create corresponding datasets for the unique numbers mentioned above.
for eg:
records which is having no as 11001 should be in one output dataset
records which are having 11002(here 2 records are there) should be in another out dataset...
The same scenario should continue for N no of records.... (in my case its max of 25)
Note: every time my unique numbers might change according to the input.... so i cant cross reference this with any hard coded data also.
I have no idea how far this can be done through JCL or cobol.
Thanks,
Maandi...