BookmarkSubscribeRSS Feed
rohitkrishna
Calcite | Level 5

Hi all,

I'm facing some problems while running the sas mainframe code,

{ i want to bypass the null value in exsisting sas output }

 

that was the major task for me get out off it kindly help me to find the solution, below i mention the code kindly go through on it

 

quote(trim (left(translate(state_cmts,' ','00'x) ))) || delimtr || { that was the one input sas code to be in a qoute and with pipe delimter 

and the output value is ++++++++{|" Next: Short End Dated."|}+++++++++

in browsing mode it shows like this ++++++++++++{|".Next: Short End Dated."|}  what i'm asking is how do i remove the dot befor the NEXT string kindly explay it 

 

Thanks & Regards 

N muralikrishna

 

 

2 REPLIES 2
Shmuel
Garnet | Level 18

If your data is a text file (using infile ...) just browse it as hex data.

If it is a variable in sas dataset use PUT(var, $HEXdd.) where dd is at least double length of var.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 841 views
  • 0 likes
  • 3 in conversation