The SAS Output Delivery System and reporting techniques

printing french char in a pdf file in MVS

Reply
Frequent Contributor
Frequent Contributor
Posts: 81

printing french char in a pdf file in MVS

Hi
I want to write French char in a PDF file in mainframe. Can any one help me out how to do it. When I use usual method using put statment, it doesn't print french char é
I am using

MVS
SAS 8.2

//**********************************************************
//STEP1 EXEC SAS
//PDFRPT DD DSN=VA562.PDF,
// DISP=(NEW,CATLG,DELETE),UNIT=INFOREAL,
// DCB=(RECFM=VB,LRECL=259,BLKSIZE=27998),
// SPACE=(TRK,(50,25),RLSE),LABEL=EXPDT=60005
//SYSIN DD DATA,DLM=##

OPTIONS SYMBOLGEN MLOGIC MPRINT;

DATA TEMP;
INPUT X 1.;
CARDS;
2
3
RUN;

ODS PDF FILE=PDFRPT NOTOC STYLE=NORMALP

DATA _NULL_;
SET TEMP;

FILE PRINT PS=28 LS=139 LL=LNSLEFT;
PUT
@ 1 'réservée ' /
ODS PDF CLOSE;
ODS LISTING;

RUN;
Super Contributor
Super Contributor
Posts: 3,174

Re: printing french char in a pdf file in MVS

You will want to explore the SAS NLS (National Language Support) resources, available with the SAS support http://support.sas.com/ web SEARCH facility or consider the Google advanced search argument below:

sas 8.2 nls national language support site:sas.com


Scott Barry
SBBWorks, Inc.
SAS Super FREQ
Posts: 8,868

Re: printing french char in a pdf file in MVS

Hi:
Generally, the FILE PRINT technique is not the technique recommended for use with the Output Delivery System. Instead, as per this Tech Support Note, FILE PRINT ODS is the recommended technique.
http://support.sas.com/techsup/technote/ts664.pdf
http://ftp.sas.com/techsup/download/v7papers/ODS_DATA.pdf
http://support.sas.com/kb/14/766.html
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a000933279.htm
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a00471329.htm
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002414280.htm
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a000472814.htm

With ODS, techniques like PUT @1, PUT @15, etc do not work as expected or in the same manner as they do with LISTING output.

However, on a Windows system, using FILE PRINT ODS techniques, I was able to print the accent marks in a title, a footnote and a column header using the program code below.

cynthia
[pre]
DATA TEMP;
infile datalines;
INPUT X 1.;
return;
datalines;
2
3
;
RUN;

ods listing close;

filename pdfrpt 'c:\temp\pdfrpt.pdf';
ODS PDF FILE=PDFRPT NOTOC;

title 'réservée';
footnote 'réservée';
DATA _NULL_;
SET TEMP;
label x='réservée';
FILE PRINT ODS footnote;
PUT _ODS_;
run;
ODS PDF CLOSE;
ODS LISTING;
[/pre]
Frequent Contributor
Frequent Contributor
Posts: 81

Re: printing french char in a pdf file in MVS

Posted in reply to Cynthia_sas
Hi
Cyinthia and Scott. Your answer put me to right direction. thanks for your help as you always do.



Thanks

Inp
Ask a Question
Discussion stats
  • 3 replies
  • 182 views
  • 0 likes
  • 3 in conversation