BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello everyone,
Could any one explain me the difference between absolute column pointer control and relative column pointer control?
For ex:
data example1;
input item $10. @17 total;
datalines;
pencil 20
pen 12
eraser 17
;
run;

data example2;
input item $10. +17 total;
datalines;
pencil 20
pen 12
eraser 17
;
run;

Thanks,
Positive soul
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Absolute column pointer is an offset in your input data/record buffer, relative to @1 being column 1.

Relative column pointer is an increment (either plus or minus) from the current pointer position in the input data/record buffer, that being +10 in the INPUT statement below is at pointer location 25, for example:

INPUT @5 myvar1 $char10. +10 myvar2 $char5. ;

Scott Barry
SBBWorks, Inc.

Some SAS DOC links on this topic from SAS support website http://support.sas.com/ listed below:

http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a002645710.htm

http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000146292.htm

sas-innovate-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2208 views
  • 0 likes
  • 2 in conversation