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 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 17 May 2001 15:58:21 -0400
Reply-To:   Charles Brokmann <cab@AIMSCO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Charles Brokmann <cab@AIMSCO.COM>
Subject:   infile, output?
Content-Type:   text/plain; charset="iso-8859-1"

SAS-Lers:

I have this code: %let datalog = %cmpres("&loglib..&anlytype.log.log"); data &datalog; filename indata "&loglib.\&anlytype.log.txt"; infile indata length=linelen; length line $ 256; input @1 line $ varying256. linelen; parseval = substr(line,1,8); if parseval = "WARNING:" then output; drop parseval; run;

That when run genereates the following in the log:

MPRINT(ANLYMAST): data "e:\Clients\Cronos\webqc_devl\SAS\web_qcacom\web_qcapub\sessuser\CBROKMA NN.TRENDCHTlog.log"; MPRINT(ANLYMAST): filename indata "e:\Clients\Cronos\webqc_devl\SAS\web_qcacom\web_qcapub\sessuser\CBROKMA NN\TRENDCHTlog.txt"; MPRINT(ANLYMAST): infile indata length=linelen; MPRINT(ANLYMAST): length line $ 256; MPRINT(ANLYMAST): input @1 line $ linelen; MPRINT(ANLYMAST): parseval = substr(line,1,8);

The SAS System

MPRINT(ANLYMAST): if parseval = "WARNING:" then output; MPRINT(ANLYMAST): drop parseval; MPRINT(ANLYMAST): run;

ERROR: Memtype field is invalid. NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used: real time 0.00 seconds cpu time 0.00 seconds

Any ideas?

Thanks, Charles


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