DATA Step, Macro, Functions and more

difference between : & ~ @ '@@'

Reply
Occasional Contributor
Posts: 17

difference between : & ~ @ '@@'

can any one pls guide me what is the difference between  ?

1) :

2) &

3)~

4)@

5)@@

 

 

Super User
Super User
Posts: 9,227

Re: difference between : & ~ @ '@@'

Posted in reply to SRINIVAS_N

They are all different characters?  Posting a question with what is XYZ is not helpful, what have you read in the manual on these, where are you using them etc?

At a guess:

1) :    - used for stating lists of variables with incremented numeric suffix, like var1, var2 etc.

2) &    - And, logic gate

3)~      - could mean anything, I use this as split in report for instance.

4)@     - hold pointer when reading file

5)@@        - hold pointer until next iteration

 

If the above, then they are all well described in the manual.

 

PROC Star
Posts: 229

Re: difference between : & ~ @ '@@'

@RW9:

3)~      - could mean anything, I use this as split in report for instance.

Actually, it is also an alternative form of the NOT operator, e.g.

408  %put %eval(1~=2);
1
Ask a Question
Discussion stats
  • 2 replies
  • 91 views
  • 3 likes
  • 3 in conversation