BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ChrisNZ
Tourmaline | Level 20

Replace

	INFILE	In_Data		LENGTH			=	_JSON_Length
						RECFM			=	V
						END				=	_End_of_Data
						;

	INPUT	@1	_JSON_Data	$VARYING32767.	_JSON_Length;

with

  set TABLENAME;
  _JSON_Data=JDATA;

 

NerdAct77
Calcite | Level 5

Your codes are very helpful! Thanks

I have an issue that my JSON is in a data table with in SAS so how can I still use yours?

Also, my json is having this:

" {"Root":{"ClientDetailsArray":[

{"idno":"111111","genderCode":"0","Dob":"1988-08-05},

{"idno":"111111","genderCode":"0","Dob":"1982-03-04"},

{"idno":"1111111","genderCode":"0","Dob":"1982-05-27"}]}} "

I want the results to be this: because it is the same client but these are the dob of his family members:

idnogenderCodedob1dob2dob3
111111005-08-198804-03-198227-05-1982

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 16 replies
  • 13322 views
  • 8 likes
  • 7 in conversation