Date: Thu, 21 Mar 2002 11:46:11 -0500
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: print control characters on MVS
Content-Type: text/plain; charset=ISO-8859-1
On Thu, 21 Mar 2002 16:05:43 GMT, Tony Harmon
>ghellrieg@T-ONLINE.DE (Gerhard Hellriegel) writes:
>> On Thu, 21 Mar 2002 15:03:36 GMT, Tony Harmon
>> <atharmonshirt@REMOVESHIRTSWBELL.NET> wrote:
>> >We have some SAS programs that create reports that are ftp'd
>> >to a mid-tier environment (AIX), and then converted to a pdf
>> >document. Our problem is that SAS is not putting the print
>> >control characters in the report and therefore the report
>> >doesn't page correctly when printed or viewed by anything
>> >other than the SAS system. Is there a parameter in PROC
>> >PRINT that tells SAS to put in the print control characters?
>> Hm, I think the main problem there is, that the print control chars on
>> mainframe are the ASA - chars which on a AIX are only 1, -, +, ... but no
>> What about using ODS to produce something what also the AIX can handle? I
>> think it should be possible to produce formatted output in a standard
>> format, like HTML. I'm not really sure if it is possible to output PDFs
>> directly on the host machine, but I assume that it won't! But HTML could
>> converted to PDF on the AIX machine, I'm sure. The "normal" output will
>> contain any valid printer control chars. Another possibility: you can
>> produce a graphical output with proc gprint, e.g. GIFs, if you have graph
>> on the host. That should also be convertable to PDF.
>Thanks. On the mainframe we have a process that strips the mainframe
>characters and replaces them with the AIX equivalents. We then ftp the file
>down to the mid-tier where I have scripts that convert it to postscript
>I think I may have found an answer: I found that in the FILE/FILENAME
>you can specify cc=<format>. The problem is that I am not a SAS programmer,
>and we don't have anyone available. Right now it does a PROC PRINTTO to
>associate the file that the PROC PRINT statements print to. I'm guessing I
>have to associate a FILE/FILENAME to that file first?
Tony, I can't imagine, that CC does what you need! CC= is a mail option and
specifies a "carbon copy recipient" of a mail which you can send by SAS.
Maybe you do not use FTP to bring the results to the AIX, but you sent it
by a automaticly generated e-mail.
Normally cc looks like
cc='Joe Smith <joe§somplace.org>'
and contains a e-mail adress, as far as I know, not a format.
Perhaps you can provide a bit of the code, how it is done now.
Again: I do not think, that PROC PRINTTO is the best thing you can do to
give you the best possible output. ODS might be a better way to go. With
that you can produce some standard-formatted files, maybe also PS (?). Just
have a look to the help system. (help ods in the command line of online-
Also informations about assigning a filename and the options you can find
in the help system.