I need to put a condition on this Control card for somefields during conversion.For fields that start at 118, 131 & 144 i want to change to ZDC only if they are Non Blank (or if they are blank i want to leave them as it is )
SORT FIELDS=(501,2,CH,A)
OUTREC BUILD=(1,104,
105,13,SFF,TO=ZDC,LENGTH=11,
118,13,SFF,TO=ZDC,LENGTH=11,
131,13,SFF,TO=ZDC,LENGTH=11,---> I want to do this only when its non blank
144,13,SFF,TO=ZDC,LENGTH=11,---> I want to do this only when its non blank
157,13,SFF,TO=ZDC,LENGTH=11,---> I want to do this only when its non blank
170,13,SFF,TO=ZDC,LENGTH=11,
183,13,SFF,TO=ZDC,LENGTH=11,
196,200,
396,113,
509,13,SFF,TO=ZDC,LENGTH=11,
522,13)
I believe IFTHEN does a Reformat different records in different ways ? But not the same record in different ways ? Please correct me if i am wrong >>Thanks much !!!