IBM/dbb

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

rsjrny opened this issue · 0 comments

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