Using Formats for Maps


You can specify an output map area name or numeric value using one of the predefined formats for maps. The following prefixes are used in the names of the formats for maps:

CONT

Continent

CNTRY

Country

GLC

Geographic Location Code, distributed by Government Services Administration. USA

ISO

International Standard Organization

The formats for maps are located in the SASHELP.MAPFMTS catalog. See the MAPS.NAMES table to view all the continent and country names and corresponding GLC, ISO, and numeric representation for the continent values.

To use one of the formats for maps, you must specify the SASHELP.MAPFMTS catalog on the FMTSEARCH= option on a SAS OPTIONS statement:

 options fmtsearch=(sashelp.mapfmts); 

In addition to using the PUT statement (as shown in the examples in the following table), the formats can also be invoked using a FORMAT statement.

FORMAT

DESCRIPTION

EXAMPLE

OUTPUT

contfmt

use a continent s numeric value to output the continent s name

cont= 91

put(cont,contfmt.);

North America

$cntrysl

use a country s short name in uppercase to output the country s long name in uppercase

name= IRAN

put(name,cntrysl.);

IRAN, ISLAMIC REPUBLIC OF

glcnlu

use the GLC numeric code to output the country s long name in uppercase

id=460

put(id,glclu.);

IRAN, ISLAMIC REPUBLIC OF

glcnsu

use the GLC numeric code to output the country s short name in uppercase

id=460

put(id,glcnsu.);

IRAN

glcnsm

use the GLC numeric code to output the country s name in mixed case

id=460

put(id,glcnsm.);

Iran

$glcalu

use the GLC alpha code to output the country s long name in uppercase

country= IR

put(country,glcalu.);

IRAN, ISLAMIC REPUBLIC OF

$glcsua

use the country s short name in uppercase to output the GLC alpha code name

name= IRAN

put(name,glcsua.);

IR

glcna

use the country s GLC numeric code to output the country s GLC alpha code

id=460

put(id,glcna.);

IR

$glcsun

use the country s short name in uppercase to output the country s GLC numeric code

name= IRAN

put(name,glcsun.);

460

$glcan

use the country s GLC alpha code to output the country s GLC numeric code

country= IR

put(country,glcan.);

460

$glcsma

use the country s short name in mixed-case to output the country s GLC alpha code

mixname= Iran

put(mixname,glcsma.);

IR

$glcsmn

use the country s short name in mixed-case to output the country s GLC numeric code

mixname= Iran

put(mixname,glcsmn.);

460

$glcprov

use a province/city name appended by as a delimiter , followed by the country s GLC alpha code to output a province country code, the province /city code, and the country s GLC alpha numeric code provname= TEHRAN

IR

put(provname,glcprov.);

8250460

8250 ” province/ city code

460 ” country GLC numeric code

$isosu2a

use the country s short name in uppercase to output the country s ISO alpha2 code

name= IRAN

put(name,$isosu2a.);

IR

$isosu3a

use the country s name in uppercase to output the country s ISO alpha3 code

name= IRAN

put(name,$isosu3a.);

IRN

$isosun

use the country s short name in uppercase to output the country s ISO numeric code

name= IRAN

put(name,isosun.);

364

ison2a

use the country s ISO numeric code to output the country s ISO alpha2 code

iso=364

put(iso,ison2a.);

IR

ison3a

use the country s ISO numeric code to output the country s ISO alpha3 code

iso=364

put(iso,ison3a.);

IRN

isonlu

use the country s ISO numeric code to output the country s long name in uppercase

iso=364

put(iso,isonlu.);

IRAN, ISLAMIC REPUBLIC OF

isonsu

use the country s ISO numeric code to output the country s short name in uppercase

iso=364

put(iso,isonsu.);

IRAN

isoa2lu

use the country s ISO alpha2 code to output the country s long name in uppercase

alpha2= IR

put(alpha2,isoa2lu.);

IRAN, ISLAMIC REPUBLIC OF

isoa2su

use the country s ISO alpha2 code to output the country s short name in uppercase

alpha2= IR

put(alpha2,isoa2lu.);

IRAN

isoa3lu

use the country s ISO alpha3 code to output the country s long name uppercase

alpha3= IRN

put(alpha3,isoa3lu.);

IRAN, ISLAMIC REPUBLIC OF

isoa3su

use the country s ISO alpha3 code to output the country s short name in uppercase

alpha3= IRN

put(alpha3,isoa3su.);

IRAN

$isoa2n

use the country s ISO alpha2 code to output the country s ISO numeric code

alpha2= IR

put(alpha2,$isoa2n.);

364

$isoa3n

use the country s ISO alpha3 code to output the country s ISO numeric code

alpha3= IRN

put(alpha3,$isoa3n.);

364

$isosm2a

use the country s short name in mixed-case to output the country s ISO alpha2 code

mixname= Iran

put(mixname,$isosn2a.);

IR

$isosm3a

use the country s short name in mixed-case to output the country s ISO alpha3 code

mixname= Iran

put(mixname,$isosn3a.);

IRN

$isosmn

use the country s short name in mixed-case to output the country s ISO numeric code

mixname= Iran

put(mixname,$isosmn.);

364




SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net