Date: Thu, 7 Sep 2006 16:57:26 -0400
Reply-To: Alina Chu <alina.chu@NYU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Alina Chu <alina.chu@NYU.EDU>
Subject: parenthesis appending
Content-Type: text/plain; charset="us-ascii"; format=flowed
Here is the code I was using to try and append the closing
parenthesis to the dataset name with member appended. In this case
when the members are associated with a certain field there is no
dataset name in the original report but a standard dataset name as I
show below:
> 000088 DATA FTPINF; SET FTPCHKS;
> 000089 FORMAT PDSN $CHAR54. ;
> 000090 IF MISSING(FTPCMDS) AND MISSING(FTPSTRT) AND
> 000091 MISSING(SDSN) AND MISSING(DSN) THEN DELETE;
> 000092 IF FTPSTRT NE ' ' THEN DO;
> 000093 TDSN='ENDP.PROD.SYSINLIB(' ;
> 000094 TESTRT=FTPSTRT||')' ;
> 000095 SDSN=TDSN||FTPSTRT ;
> 000096 PDSN=TDSN||TESTRT ;
> 000097 END;
I had not looked at this for awhile. I now see that with the above
code having executed, I missed seeing that it is getting a message
that the TESTRT field is too long and it is being
truncated. Assuming that I can correct my length problem I should be
able to simplify the code to just concatenating the ')'. No wonder I
would never see the closing parenthesis!
I thought I was having a DUH moment and unfortunately I was
correct. Sorry if I wasted everyone's time.
Alina
Alina Chu
New York University