Hi Guys,
I want to format certain string into a different format. My Input file will have the strings given below:
S9
S9V9
S99
S99V9
S99V99
S999
S999V9
S999V99
S999V999
S9(X)V9(X)
X= NUMBER OF OCCURANCE OF 9
I think you understand that its a COBOL data format.. and I have to modify these strings into SAS equivalent data format... and the output should be:
S9 - PD1.
S9V9 - PD1.1
S99 - PD2.
S99V9 - PD2.1
S99V99 - PD2.2
S999 - PD3.
S999V9 - PD3.1
S999V99 - PD3.2
S999V999 - PD3.3
S9(X)V9(X) - PDX.X
Please suggest me some ideas.. I have done it with Parse.. but the code became too huge for this.. is there any other way to do this.. like using ICETOOL
I have gone through a link.. which seems me a good one..
http://ibmmainframes.com/about56572.html
but still want yours opinion
Thanks
Nikesh