Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCLtoDBB.groovy fails when a DD uses a dataset name in the DCB= #152

Open
rsjrny opened this issue Nov 13, 2022 · 0 comments
Open

JCLtoDBB.groovy fails when a DD uses a dataset name in the DCB= #152

rsjrny opened this issue Nov 13, 2022 · 0 comments

Comments

@rsjrny
Copy link

rsjrny commented Nov 13, 2022

dbb-migrate/Migration/jcl/groovy/JCLtoDBB.groovy is failing to convert JCL

I believe I narrowed it down to the following statement

//ISPPROF  DD UNIT=SYSDA,SPACE=(TRK,(1,1,1)),    
//            DCB=MY.USER.ISPPROF.DATASET        

It appears that if the DCB= references a dataset the loop fails

**** parm value: DCB=MY.USER.ISPPROF.DATASET                                    
Caught: java.lang.IndexOutOfBoundsException: index is out of range 0..-1 (index 
= 0)                                                                            
java.lang.IndexOutOfBoundsException: index is out of range 0..-1 (index = 0)    
        at JCLtoDBB.processAllocOption(JCLtoDBB.groovy:556)                     
        at JCLtoDBB$_convertAllocationToDD_closure12$_closure35.doCall(JCLtoDBB.
groovy:516)                                                                     
        at JCLtoDBB$_convertAllocationToDD_closure12.doCall(JCLtoDBB.groovy:515)
        at JCLtoDBB.convertAllocationToDD(JCLtoDBB.groovy:486)                  
        at JCLtoDBB$_run_closure4$_closure19$_closure20$_closure21$_closure22$_c
losure24.doCall(JCLtoDBB.groovy:213)                                            
        at JCLtoDBB$_run_closure4$_closure19$_closure20$_closure21$_closure22.do
Call(JCLtoDBB.groovy:210)                                                       
        at JCLtoDBB$_run_closure4$_closure19$_closure20$_closure21.doCall(JCLtoD
BB.groovy:199)                                                                  
        at JCLtoDBB$_run_closure4$_closure19$_closure20.doCall(JCLtoDBB.groovy:1
98)                                                                             
        at JCLtoDBB$_run_closure4$_closure19.doCall(JCLtoDBB.groovy:197)        
        at JCLtoDBB$_run_closure4.doCall(JCLtoDBB.groovy:196)                   
        at JCLtoDBB.run(JCLtoDBB.groovy:260)                                    
** Build finished                                                               
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant