Hi All, I reckon everyone is doing great. I require your assistance on something like. I've a CSV file and I imported into sas so, the data in that CSV file looks like the below one. And it is completely a json data so, from this I would like to create a table whose fields are Batch no, Goodsname, Quantity, Infotype and please closely observe this data as you see there's a value named NEWLY, this value doesn't come often but when it comes the values under this has to be the fields like D_Infotype, D_Typeid, D_Quantity. I'll explain you how this to be analysed, here BatchNo is an end point for every record so, until a new BatchNo comes the values should be treated as one records data. Any help much appreciated. Thankyou.
Required output;
BatchNo GoodsName Quantity Infotype D_Infotype D_Typeid D_Quantity
001 Nikeshoes 3 Sneakers
001 Pants 5 Trackpants RAQ 109 0
009 Nikeshoes 3 Sneakers
009 Pants 5 Trackpants
011 Jackets 3 Topwears RAQ 109 0
"""BatchNo"":""001""""
"""Goodsname"":""Nikeshoes""""
"""Quantity"":""3""""
"""Infotype"":""Sneakers""""
"""Goodsname"":""pants""""
"""Quantity"":""5""""
"""Infotype"":""Trackpants""""
"""Newly"":""""""
"""Infotype"":""RAQ""""
"""TypeId"":""109""""
"""Cause"":""Broken""""
"""Quantity"":""0""""
"""BatchNo"":""009""""
"""Goodsname"":""Nikeshoes""""
"""Quantity"":""3""""
"""Infotype"":""Sneakers""""
"""Goodsname"":""pants""""
"""Quantity"":""5""""
"""Infotype"":""Trackpants""""
"""BatchNo"":""011""""
"""Goodsname"":""Jackets""""
"""Quantity"":""3""""
"""Infotype"":""topwears""""
"""Newly"":""""""
"""Infotype"":""RAQ""""
"""TypeId"":""100""""
"""Cause"":""Broken""""
"""Quantity"":""0""""
... View more