Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

COBOL Programming :: RE: Query on Splitting up a file

$
0
0
Author: abdulrafi
Posted: Tue May 03, 2016 4:39 pm (GMT 5.5)

Need one more help. I have the input records as below.

Current input file,

Code:
 01 WS-VALUE2        PIC X(107)  VALUE                           
          'N,88320,00254XMT03GUIDE,6U,6156,1/1/2001,GLOVEBOX XM C
-        'ANNEL GUIDE,2016,,,,O,"ED, EE"'.                       



Earlier input file,

Code:
 01 WS-VALUE         PIC X(107)  VALUE                           
          'N,88320,00254XMT03GUIDE,6U,6156,1/1/2001,GLOVEBOX XM CH
-        'ANNEL GUIDE,2016,1,N,"AL, AR, FL, GA, LA",O,"ED, EE"'. 


Instead of "AL,AR,FL....." I have one comma now. I need to identify this position now. I used UNSTRING variable but I could not get the correct values to the correct fields. It got jumbled.

Could you please help me if I could achieve it using reference modification or by any other means ?.
_________________
Thanks,
Abdul Rafi


Viewing all articles
Browse latest Browse all 9405

Trending Articles