BookmarkSubscribeRSS Feed
Inp
Obsidian | Level 7 Inp
Obsidian | Level 7
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;
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.
Cynthia_sas
SAS Super FREQ
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]
Inp
Obsidian | Level 7 Inp
Obsidian | Level 7
Hi
Cyinthia and Scott. Your answer put me to right direction. thanks for your help as you always do.



Thanks

Inp

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 722 views
  • 0 likes
  • 3 in conversation