Hi,
I have this number (PID)and we want to create two numbers from it
00000000-11111111
Please correct me
Hi Robertrao,
Yes, it is right.The index function returns a value of 9, so the substr function take the values from 10th position.
Add 1 to the value returned by index.
Could you please explain the full line ...what happens when 1 is added to the value returned by index???????/
so that position becomes the starting point for the substring instead of the usual "first position"?
In this example:
00000000-11111111
the index returns a value of 9(hyphen is in the 9th position)
so +1 means "we are telling the substr function to take the values from 10th position????is that right?
aND FROM THERE WE ARE TAKING 9 CHARECTERS???/
Hi Robertrao,
Yes, it is right.The index function returns a value of 9, so the substr function take the values from 10th position.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.