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

Let's say we have the following situation in a JSON file:

 

 

"retainthis" : "X" ,
"rows" : [
   { var = 0 } ,
   { var = 1 }
 ]

 

 And we want the following table when we read this JSON file with a libname statement using a map:

X0
X1

 

If I remember correctly there is a certain attribute you can use in the map to make sure the X value is retained. You have to specify name, type, path, length, etc. What attribute could we add to the map so that it retains the value.

 

I can't find it in the SAS document anywhere. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Amir
PROC Star

Hi,

 

Are you looking for the below found in the LIBNAME Statement: JSON Engine documentation?

 

Amir_0-1739293700394.png

 

 

 

Thanks & kind regards,

Amir.

View solution in original post

2 REPLIES 2
Amir
PROC Star

Hi,

 

Are you looking for the below found in the LIBNAME Statement: JSON Engine documentation?

 

Amir_0-1739293700394.png

 

 

 

Thanks & kind regards,

Amir.

SanderB
Obsidian | Level 7

Yes, that is exactly the option I was looking for. Thank you! In the past Google would always directly send me to the correct onlinedoc pages when searching for things like this. But nowadays I rarely end up on the correct SAS pages. I wonder if that is a problem with Google or a problem with the SAS documentation.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2 replies
  • 561 views
  • 1 like
  • 2 in conversation
OSZAR »