I'm trying to create a SAS dataset mentioned in table below. However the program which I used is not producing the desired output. Please note that there is a space in the value of the last variable PARAM_DESC. Appreciate your help here.
Program:
Desired Output:
Read SAS Documentation for List Input. From Docs:
The & (ampersand) format modifier enables you to read character values that contains one or more embedded blanks with list input and to specify a character informat. SAS reads until it encounters two consecutive blanks, the defined length of the variable, or the end of the input line, whichever comes first.
The single quotes surrounding the input string is not necessary (if you want).
You have mixed use of 'TAB' and 'Space' as delimiters.
In the first record, you have a 'TAB' character between second and third variables.(PRL*** prl_ifrs17_vlu).
How to identify that I've the mixed use of 'TAB' and 'Space' as delimiters?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.