LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 29 May 2008 12:17:48 -0400
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: concatenation syntax // or ||

On Wed, 28 May 2008 09:46:01 -0700, dc353@hotmail.com <dc353@HOTMAIL.COM> wrote:

>Hi, > >could someone explain the difference between using // and ||.

That are different chars and SAS doesn't "understand" // in the same context as !! or ||.

// is used in PUT or INPUT statement and means "2 CRLF"

so

put "-------------" / "this is line 1" // "and this?" / "---------------";

shows:

---------------- this is line 1

and this? ---------------

The !! or || is a concatenation operator. You can fit two strings together with that.

By the way: I prefer !! because there are less troubles with porting code between different platforms.

Gerhard


Back to: Top of message | Previous page | Main SAS-L page