Templates are a Multi-Edit is similar to the MASK function for ISPF and the abbreviation list for VI.
It allows you to type a few characters (keyword) to generate syntactically correct code with "fill
in the blank" areas. The templates contain text surrounded in the "back leaning" quote mark.
These represent code pieces that must be entered to suit the specific requirements for this
location. They are called field strings. You can use Cntl-i to hop to the next field string
beyond the cursor. This selects the whole field string so that typing overwrites it all. Find out
more about how to use templates in the
online manual.
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Help templates: In addition to code these templates list options and contain
comments to describe the use of the code and options. Find out more in the
manual.
|
| qshowcode | ?debug | Expand all source and macros |
| qsystem_options | ?system | |
| qdataset_options | ?dataset | All the options for a data step |
| qlibname | ?libname | |
| qlabel | ?label | |
| qinfile | ?infile | |
| qfilename | ?filename | |
| qfile | ?file | |
| qby | ?by | |
| qintnx | ?intnx | Date time interval increment |
| qintck | ?intck | Date time interval difference |
| qfopen | ?fopen | File open |
| qattrc | ?attrc | |
| qattrn | ?attrn | |
| qcdf | ?cdf | |
| qarray | ?array | |
| Smart templates: These templates
display dialog boxes allowing you to pick (with check boxes) all the options and
sub statements and their options
you want included in the proc step. Find out how these work in the
manual. |
| Proc_Compare | compare* | |
| Proc_Datasets | datasets* | |
| Proc_means | means* | |
| Proc_Summ | summary* | |
| Sql_Query | sqlq* | |
| Proc_Sql | sql* | |
| Proc_Tabulate | tabulate* | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Programming/Language constructs:
These templates lay out all the
variations of conditional and loop statements. See how they expand in the
manual. |
| ifelsedo | ifed | |
| ifthendo | iftd | |
| ifelse | ifelse | |
| ifthen | ifthen | |
| if | ifs | |
| dowhile | dow | |
| dountil | dou | |
| dotoby | dotb | |
| doto | dot | |
| doover | doo | |
| selectwhenotherwise | selo | |
| selectwhen | sel | |
| when | wh | |
| Global statement templates: These templates
create statements
that
apply to the whole program such as run options for debugging and libname assignments. |
| G_libname_clear | libnamec | |
| G_libname | libname | |
| G_filename_clear | filenamec | |
| G_filename | filename | |
| G_options_debug | optd | Expand all source and macros |
| Debug and Comment templates: These templates create comment blocks
or prolog comments, most would not be invoked by a keyword, but instead by a button or menu choice.
Find out details about how to use debug
and comment templates in the manual. |
| DbugPutAll | dputa | Places a put _ALL_ statement will other text that will idetify the line and allow it to work with the log viewing tools |
| ComEOLDate | /*d | Only expands at the end of a line, adds the current time date stamp to the comment |
| ComEndOfLine | /* | Only expands at the end of a line, places your cursor inside the /* */ so you can type your text |
| ComBlock 1* | cbk | Comment block with 1 * like
/*************/
/* some text */
/*************/
|
| ComBlock 2* | cbk2 | Two stars on sides like /** .... **/ |
| ComBlock 3* | cbk3 | Three stars on sides like /*** .... ***/ |
| ComBlockLine | cbl | Places comment block around selected lines |
| Maintainance_info | maint | Adds a line with time-date and programmer name and change description to a prolog block in the maintenance area |
| Prolog | prolog | Places a comment block used to specify basic module information, gathered through prompts |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Proc templates: These templates expand into popular
proc steps. The
names are fairly explanatory. Learn more about these in the
manual. |
| Proc_univariate | punivariate | |
| Proc_transpose | ptranspose | |
| Proc_timeplot | ptimeplot | |
| Proc_tabulate | ptabulate | |
| Proc_summary | psummary | |
| Proc_standard | pstandard | |
| Proc_spell_dic | pspelld | |
| Proc_spell | pspell | |
| Proc_sort | psort | |
| Proc_report | preport | |
| Proc_rank | prank | |
| Proc_print | pprint | |
| Proc_plot | pplot | |
| Proc_options | poptions | |
| Proc_means | pmeans | |
| Proc_freq | pfreq | |
| Proc_format | pformat | |
| Proc_datasets | pdatasets | |
| Proc_cport | pcport | |
| proc_corr | pcorr | |
| Proc_copy | pcopy | |
| Proc_contents | pcontents | |
| Proc_compare | pcompare | |
| Proc_cimport | pcimport | |
| Proc_chart | pchart | |
| Proc_catalog | pcatalog | |
| Proc_append | pappend | |
| Data statement templates: These
templates expand into data statements. The
names are fairly explanatory. Find out what these expand into in the
manual. |
| DATABY | databy | Data statement followed with a by statement |
| DATACARD | datacard | Data step with instream data |
| DATAMERGE | datamerge | Data step merging one or more datasets |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Function templates: These templates expand
into popular function calls. The
names are fairly explanatory. Find out more in the
manual. |
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| FuncCasade | f() | Function Cascade is a template invoked, menu
driven method to invoke a function template by picking it from a list. You will be presented with
a popup menu. This menu presents a list of major groups of functions. As you make selections the
last popup disappears and a new one appears in its place listing a subset of groups or actual
function names. Learn how this works in the manual. |
| zipstate | zipstate( | |
| zipnamel | zipnamel( | |
| zipname | zipname( | |
| zipfips | zipfips( | |
| yyq | yyq( | |
| year | year( | |
| weekday | weekday( | |
| wakeup | wakeup( | |
| verify | verify( | |
| vartype | vartype( | |
| varnum | varnum( | |
| varname | varname( | |
| varlen | varlen( | |
| varlabel | varlabel( | |
| varinfmt | varinfmt( | |
| varfmt | varfmt( | |
| var | var( | |
| uss | uss( | |
| upcase | upcase( | |
| uniform | uniform( | |
| tso | tso( | |
| trunc | trunc( | |
| trimn | trimn( | |
| trim | trim( | |
| trigamma | trigamma( | |
| tranwrd | tranwrd( | |
| translate | translate( | |
| today | today( | |
| tnonct | tnonct( | |
| tinv | tinv( | |
| timepart | timepart( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| time | time( | |
| tanh | tanh( | |
| tan | tan( | |
| system | system( | |
| sysrc | sysrc( | |
| sysprod | sysprod( | |
| sysmsg | sysmsg( | |
| sysget | sysget( | |
| symget | symget( | |
| sum | sum( | |
| substr | substr( | |
| stnamel | stnamel( | |
| stname | stname( | |
| stfips | stfips( | |
| stderr | stderr( | |
| std | std( | |
| sqrt | sqrt( | |
| spedis | spedis( | |
| soundex | soundex( | |
| sleep | sleep( | |
| skewness | skewnexx( | |
| sinh | sinh( | |
| sin | sin( | |
| sign | sign( | |
| second | second( | |
| sdf | sdf( | |
| scan | scan( | |
| saving | saving( | |
| round | round( | |
| right | right( | |
| rewind | rewind( | |
| reverse | reverse( | |
| resolve | resolve( | |
| repeat | repeat( | |
| ranuni | ranuni( | |
| rantri | rantri( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| rantbl | rantbl( | |
| ranpoi | ranpoi( | |
| rannor | rannor( | |
| rank | rank( | |
| range | range( | |
| rangam | rangam( | |
| ranexp | ranexp( | |
| rancau | rancau( | |
| ranbin | ranbin( | |
| quote | quote( | |
| qtr | qtr( | |
| putn | putn( | |
| putc | putc( | |
| put | put( | |
| probt | probt( | |
| probnorm | probnorm( | |
| probnegb | probnegb( | |
| probmc | probmc( | |
| probit | probit( | |
| probhypr | probhypr( | |
| probgam | probgam( | |
| probf | probf( | |
| probchi | probchi( | |
| probbnml | probbnrm( | |
| probbeta | probbeta( | |
| poisson | poisson( | |
| point | point( | |
| pdf | pdf( | |
| pathname | pathname( | |
| ordinal | ordinal( | |
| open | open( | |
| note | note( | |
| normal | normal( | |
| nmiss | nmiss( | |
| netpv | netpv( | |
| n | n( | |
| mort | mort( | |
| mopen | mopen( | |
| month | month( | |
| mod | mod( | |
| minute | minute( | |
| min | min( | |
| mean | mean( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| mdy | mdy( | |
| max | max( | |
| lowcase | lowcase( | |
| logsdf | logsdf( | |
| logpdf | logpdf( | |
| log | log | |
| log | log( | |
| libref | libref( | |
| libname | libname( | |
| lgamma | lgamma( | |
| length | length( | |
| left | left( | |
| lbound | lbound( | |
| lag | lag( | |
| kurtosis | kurtosis( | |
| jbessel | jbessel( | |
| irr | irr( | |
| intrr | intrr( | |
| intnx | intnx( | |
| intck | intck( | |
| int | int( | |
| inputn | inputn( | |
| inputc | inputc( | |
| input | input( | |
| indexw | indexw( | |
| indexc | indexc( | |
| index | index( | |
| ibessel | ibessel( | |
| hour | hour( | |
| hms | hms( | |
| hbound | hbound( | |
| getvarn | getvarn( | |
| getvarc | getvarc( | |
| getoption | getoption( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| gamma | gamma( | |
| gaminv | gaminv( | |
| fwrite | fwrite( | |
| fuzz | fuzz( | |
| fsep | fsep( | |
| frlen | frlen( | |
| frewind | frewind( | |
| fread | fread( | |
| fput | fput( | |
| fpos | fpos( | |
| fpoint | fpoint( | |
| foptnum | foptnum( | |
| foptname | foptname( | |
| fopen | fopen( | |
| fnote | fnote( | |
| fnonct | fnonct( | |
| floor | floor( | |
| fipstate | fipstate( | |
| fipnamel | fipnamel( | |
| fipname | fipname( | |
| finv | finv( | |
| finfo | finfo( | |
| fileref | fileref( | |
| filename | filename( | |
| fileexist | fileexist( | |
| fget | fget( | |
| fexist | fexist( | |
| fetchobs | fetchobs( | |
| fetch | fetch( | |
| fdelete | fdelete( | |
| fcol | fcol( | |
| fclose | fclose( | |
| fappend | fappend( | |
| exp | exp( | |
| exist | exist( | |
| erfc | erfc( | |
| erf | erf( | |
| dsname | dsname( | |
| dropnote | dropnote( | |
| dread | dread( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| doptnum | doptnum( | |
| doptname | doptname( | |
| dopen | dopen( | |
| dnum | dnum( | |
| dinfo | dinfo( | |
| dim | dim( | |
| digamma | digamma( | |
| dif | dif( | |
| dhms | dhms( | |
| dequote | dequote( | |
| deptab | deptab( | |
| depsyd | depsyd( | |
| depsl | depsl( | |
| depdbsl | depdbsl( | |
| depdb | depdb( | |
| dclose | dclose( | |
| day | day( | |
| datetime | datetime( | |
| datepart | datepart( | |
| date | date( | |
| dairy | dairy( | |
| dacctab | dacctab( | |
| daccsyd | daccsyd( | |
| daccsl | daccsl( | |
| daccdbsl | daccdbsl( | |
| daccdb | daccdb( | |
| cv | cv( | |
| curobs | curobs( | |
| css | css( | |
| cosh | cosh( | |
| cos | cos( | |
| compress | compress( | |
| compound | compound( | |
| compbl | compbl( | |
| collate | collate( | |
| cnonct | cnonct( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |
| close | close( | |
| cinv | cinv( | |
| cexist | cexist( | |
| ceil | ceil( | |
| cdf | cdf( | |
| byte | byte( | |
| bxor | bxor( | |
| brshift | brshift( | |
| bor | bor( | |
| bnot | bnot( | |
| blshift | blshift( | |
| betainv | betainv( | |
| band | band( | |
| attrn | attrn( | |
| attrc | attrc( | |
| atan | atan( | |
| arsin | arsin( | |
| arcos | arcos( | |
| airy | airy( | |
| abs | abs( | |
| Jump To: Help
Smart
Language
Global
Comment
Proc
Data
Functions
|
| Jump To Functions: A-C D-E F-G
H-I J-L M-N O-P
Q-R S T U-Z |