My suggestion is since it is a text field try using substr function to manipulate
For example
Buyer_order=(put(substr(buyer_order_no,1,4),8.)*100000000000000);
There are lot of options
1) Treat it as a text file use some shell script to parse the string ( If you need one I have a sample)
2) Save it in the database as CLOB and use xquery to get the results.
3) Use SAS XML Mapper to create the schema and import it into SAS.
Hope this helps.
We have a XML saved as CLOB datatype in a DB2 table. In the XML text we need to extract the substring between nodes <text> and </text>.
Since the number of occurence of this is not contant(multiple occurence), we have difficulty using SUBSTR function.
Any guidance is appreciated.
Thanks,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.