31.0 SCAINPUT Command
The SCAINPUT command is used to:
- Browse a SCA FSAVE file library.
- Browse a RATS PORTABLE file.
- Read SCA FSAVE file into B34S.
- Read SCA FSAVE file into B34S MACRO SAVE files.
- Read SCA FSAVE file and merge with existing B34S dataset,
merging by observation number in the SCA FSAVE file.
- Make SCA FSAVE files from currently active B34S variables.
- Make B34S MACRO SAVE files from variables currently active.
- Put together SCA FSAVE file libraries & B34S MACRO Libraries.
- Read RATS PORTABLE file into B34S.
- Read RATS PORTABLE file into B34S MACRO SAVE files.
- Read RATS PORTABLE file and merge with existing B34S dataset.
- Make RATS PORTABLE file.
Form of SCAINPUT command.
B34SEXEC SCAINPUT options parameters $
GETSCA options parameters $
MAKEB34S options parameters $
MAKESCA options paremeters $
COMMENT=(' any comment here ' ) $
FILEADD options parameters $
GETRATS options parameters $
MAKERATS options parameters $
B34SEEND$
Warning: If the B34SEEND$ delimiter is used, the B34S parser
first looks at all input cards prior to running. The
B34S SCAINPUT command is setup to executive at once.
If the prior commands have not run, and these commands
produced output files, the SCAINPUT command will not find
these files available. The solution is to specify the
B34SRUN$ delimiter in place of the B34SEEND$ delimiter
on the B34SEXEC sentence prior to the SCAINPUT sentence.
Note: The B34S PGMCALL command (See section 24) is intended to be
used to pass commands and branch to SAS, Speakeasy, .., SCA.
For the SCA branch, the PGMCALL command uses the SCA INPUT
paragraph. The B34S SCAINPUT command is used to facilitate
interchange of data savefiles. Often times a B34S run
contains data from a number of sources. The SCAINPUT
paragraph allows saving the currently active variables in a
convenient form. A B34S MACRO can be executed with the B34S
OPTIONS command.
Character data:
While B34S accepts character data, the SCAINPUT command
currently does not support character data. If character
is listed on the VAR parameter it will generate an error.
If the VAR sentence is not used, only non character data
will be passed.
SCA FSAVE file structure:
The SCA FSAVE file structure is documented in "The SCA Statistical
System: Reference Manual for Fundamental Capabilities" available from
the SCA Corporation. (For further details on SCA, see the help file for
the PGMCALL command). An example of a SCA FSAVE file to save variables
SCORES and NAMES in DATASET DSNAME is:
==DSNAME
-- THIS DATASET WAS CREATED AT 23: 2:42 ON 3/31/85
--$LABEL NAMES = 'Any label here up to 40 characters '$
--$FORM=(F6.1,2X,A6)
--$MISS= 111.0
--$NVAR= 2 TROW= 4 TCOL= 2
--$NAME=SCORES NROW= 4 NCOL= 1 TYPE= 2
--$NAME=NAMES NROW= 4 NCOL= 1 TYPE= 4
80.0 JOHN
85.0 MARY
70.0 ADAM
80.0 PETER
END OF DATA
//
TYPE = 4 is a character variable which is not currently supported in
B34S. The variable format must not extend over col 72. The current
version of the B34S SCAINPUT uses 4E18.10 as the default. The high
accuracy format is 3E24.16 .
*****
The B34S MACRO file is a sequential file with ==NAME delimiters.
If a B34S MACRO file is inputed directly, the ==NAME delimiters
will be ignored, and the complete file will execute. If the B34S
MACRO file is called with the B34S OPTIONS command, selective section
can be run. The B34S SCALINPUT command can be used to build data
loading B34S MACROS. An example of a B34S MACRO loading data and
running regressions is given below.
==RUN1
B34SEXEC DATA NOOB=5$
INPUT X Y Z$
DATACARDS$
66 77 88
88 44 33
1.5 6.7 20
2.2 33 11
22 33 44
B34SRETURN$
B34SEEND$
B34S REGRESSION$ MODEL Y=X Z$
B34SEEND$
==
==RUN2
B34SEXEC LIST$
VAR X Y Z$
B34SEEND$
==
Assuming the above file is allocated to unit 48, the following
will load the data and run a model Y = f(X Z):
B34SEXEC OPTIONS INCLUDE(48) MACRO('RUN1')$
B34SEEND$
The SCAINPUT command must contain either the GETSCA, MAKEB34S, MAKESCA
or FILEADD sentences. The COMMENT sentence is optional. There can be
more than one COMMENT sentence.
SCAINPUT sentence options.
ECHO - If set will echo SCA FSAVE file comments or RATS
portable file comments.
NOECHO - If set will not echo file comments. This is
the default setting.
SCAINPUT sentence parameters.
SFORMAT=k1 - Sets save format. If k1 is set to NORMAL, 4E18.10
is used. If k1 is set to HIGHACCURACY, 3E24.16 is
used. The default is NORMAL.
GETSCA sentence.
GETSCA options paramaters$
The GETSCA sentence is used to:
- Brousing a SCA FSAVE file library.
- Read a SCA FSAVE file into B34S.
- Read a SCA FSAVE file into a B34S MACRO library.
Options for GETSCA sentence.
BROWSE - Browses SCA FSAVE file on SCAUNIT.
MACRO(k1) - Specifies name for B34S MACRO created on unit SAVEUNIT.
Note: If MACRO not set and BROWSE not in effect,
GETSCA will load variables in SCA FSAVE file DATASET
into B34S. A maximum of 8 characters can be supplied.
HEAD - Will print the B34S header when data loaded in B34S.
NOHEAD - Will turn off the B34S header, and only give variable
means. This is a default setting and is recommended.
REPLACE - Will replace any existing B34S data with data from
SCA FSAVE file. This is default setting.
MERGE - Will merge SCA FSAVE data with data currently in B34S.
Note: If this option is given, it is imperative that
the prior B34S paragraph end with B34SRUN$. Unless
This is done, the data will not be present in B34S to
perform the merge.
CORR - Will make B34S produce correlation matrix.
COV - Will make B34S produce covariance matrix.
Parameters for GETSCA sentence.
SCAUNIT=n1 - Sets SCA FSAVE file unit. Default = 44.
DATASET=k2 - Sets SCA FSAVE file DATASET name. The DATASET
parameter is required unless BROWSE option has been
set. A maximum of 8 characters can be supplied. (Name
must be a valid SCA name.)
SAVEUNIT=n2 - Sets B34S MACRO save unit. Default = 46.
DISP=k3 - DISP keywords are ADD (the default) or REWIND. If
REWIND has been specified, prior B34S MACROS on
SAVEUNIT will be erased.
HEADING=(' ') - Optionally set up to 32 characters for B34S DATA
command heading.
SCAVAR(var1,var2) - Sets SCA variables to load. If this parameter
is not supplied, all variables will be loaded.
RENAME(OLDSCAV1,NEWV1,OLDSCAV2,NEWV2) This option allows a recode of
the variable names in the SCA FSAVE file. This is
useful if the names in the SCA FSAVE file are the
same as an active B34S variables of the names are
not appropriate. The keywork RECODE can be used in
place of RENAME.
The following parameters only have meaning if MERGE was supplied.
B34SBY(k1) - Specify the by variable for the merge. If the
B34SBY parameter is not supplied the B34S
observation number is used.
SCABY(k2) - Specify the SCA FSAVE by variable. The default is
OBSNUM which is automatically produced when loading
an SCA FSAVE file.
MAKEB34S sentence.
MAKEB34S options parameters $
The MAKEB34S sentence is used to save the current B34S variables in
a B34S MACRO file. The sentence prior to the SCAINPUT command containing
the MAKEB34S sentence MUST end with B34SRUN$ in place of B34SEEND$ to
correctly set the number of observations.
Options for MAKEB34S sentence.
MACRO(k1) - Specifies B34S MACRO name. MACRO is a required option
on MAKEB34S sentence.
HEAD - Will print the B34S header when data loaded in B34S.
NOHEAD - Will turn off the B34S header, and only give variable
means. This is a default setting and is recommended.
CORR - Will make B34S produce correlation matrix.
COV - Will make B34S produce covariance matrix.
Parameters for MAKEB34S sentence.
SAVEUNIT=n1 - Sets B34S MACRO save unit. Default = 46.
DISP=k2 - DISP keywords are ADD (the default) or REWIND. If
REWIND has been specified, prior B34S MACROS on
SAVEUNIT will be erased.
VAR=(k2,k3,..,kn) - Specifies variables in current B34S dataset to
be saved. If VAR parameter not found, all active
B34S variables are saved.
HEADING=(' ') - Optionally set up to 32 characters for B34S DATA
command heading. Note that the HEADING parameter is
not related to the HEAD / NOHEAD option. For
further detail see the B34S DATA command.
IBEGIN=n2 - Sets first observation for dataset to be saved.
Default = 1.
IEND=n3 - Sets last observation for dataset to be saved.
Default = NOOB.
MAKESCA sentence.
MAKESCA parameters $
The MAKESCA sentence is used to save the current B34S variables in a SCA
FSAVE file. The sentence prior to the SCAINPUT command containing the
MAKESCA sentence MUST end with B34SRUN$ in place of B34SEEND$ to
correctly set the number of observations.
Parameters for MAKESCA sentence.
SCAUNIT=n1 - Sets SCA DATASET save unit. Default = 44.
DATASET=k1 - Sets SCA FSAVE file dataset name. This parameter is
required. A maximum of 8 characters can be supplied.
(The name (k1) must be a valid SCA name.)
DISP=k2 - DISP keywords are ADD (the default) or REWIND. If
REWIND has been specified, prior SCA FSAVE DATASETS
on SCAUNIT will be erased.
VAR=(k2,k3,..,kn) - Specifies variables in current B34S dataset to
be saved. If VAR parameter not found, all active
B34S variables are saved.
IBEGIN=n2 - Sets first observation for dataset to be saved.
Default = 1.
IEND=n3 - Sets last observation for dataset to be saved.
Default = NOOB.
SFORMAT(K) If k = normal the format 4E18.10 is used. If
k = HIGHACCURACY, the format 3E24.16 is used.
COMMENT sentence.
COMMENT=(' ')
(' ') $
The Comment sentence is used to input up to 56 characters of text
per line [(i. e. within the ( ) ]. There is no limit to the number of
lines supplied. These comments will be appended to the files saved.
This command does nothing if FILEADD, of GETSCA commands are used.
FILEADD sentence
FILEADD parameters $
The FILEADD sentence is used to concatenate B34S MACRO files and
SCA FSAVE file libraries. Optionally the dataset names (macro names)
can be updated. The SCAOUT or B34SOUT parameters are required.
Parameters for FILEADD sentence.
B34SIN =n1 - Sets B34S MACRO file input unit. Default = 46.
B34SOUT =n2 - Sets B34S MACRO file output unit.
SCAIN =n3 - Sets SCA FSAVE file input unit. Default = 44.
SCAOUT =n4 - Sets SCA FSAVE file output unit.
UDSN = k1 - Sets prefix k1 for dataset name update. If n1 = n2
or n3 = n4, then the file names are updated in
place. The maximum size allowed is 6.
MAKERATS sentence
MAKERATS parameters $
The MAKERATS sentence is used to save the current B34S variables in a
RATS PORTABLE file. The sentence prior to the SCAINPUT command
containing the MAKERATS sentence must end with B34SRUN$ in place of
B34SEEND$ to correctly set the number of observations. RATS supports a
number of file formats. The current release of this command supports
the formats: UNDATED, ANNUAL, DAILY(7), WEEKLY, QUARTERLY, MONTHLY.
These are associated with data having no time series properties, and
data having FREQ equal to 1.0, 365.0, 52.0, 4.0, 12.0 respectively.
Parameters for MAKERATS sentence.
RATSUNIT=n1 - Sets RATS save unit. Default = 45.
VAR=(k2,k3,..,kn) - Specifies variables in current B34S dataset to
be saved. If VAR parameter not found, all active
B34S variables are saved.
IBEGIN=n2 - Sets first observation for dataset to be saved.
Default = 1.
IEND=n3 - Sets last observation for dataset to be saved.
Default = NOOB.
DISP=k2 - DISP keywords are ADD or REWIND (the default). If
REWIND has been specified, prior RATS PORTABLE files
on RATSUNIT will be erased. If ADD is set and the
number of observations is not the same for the added
data as the old data, problem may occure in loading
the data.
DATE=var - Supplies the name of the JULIAN series containing
the date. If this option is not supplied and
a base date is not supplied, then the observation
number will be used. If this option is not supplied
and a base date is supplied, it will be used. If
a value other than any of the above is desired, use
the ID option discussed below.
ID=var - Supplies the name of an identifier (or date)
variable.
SFORMAT(K) - If k = NORMAL the format 3E18.10 is used. If
k = HIGHACCURACY, the format 2E25.16 is used.
GETRATS sentence.
The GETRATS sentence supports a subset of the RATS PORTABLE file
formats. The current release of this command supports
the formats: UNDATED, ANNUAL, DAILY(7), WEEKLY, QUARTERLY, MONTHLY.
These are associated with data having no time series properties, and
data having FREQ equal to 1.0, 365.0, 52.0, 4.0, 12.0 respectively.
GETRATS options paramaters$
The GETRATS sentence is used to:
- Brousing a RATS PORTABLE file.
- Read a RATS PORTABLE file into B34S.
- Read a RATS PORTABLE file into B34S and merge with
current B34S variables.
Options for GETRATS sentence.
BROWSE - Browses RATS PORTABLE file on RATSUNIT.
HEAD - Will print the B34S header when data loaded in B34S.
NOHEAD - Will turn off the B34S header, and only give variable
means. This is a default setting and is recommended.
DROPMISS - Data before and equal to missing values and data
after and equal to missing values will be dropped.
This is the default setting.
KEEPMISS - Missing values will be kept and assigned B34S missing
values. This option may result in overflows if the
mean of the data is incorrectly calculated.
REPLACE - Will replace any existing B34S data with data from
RATS file. This is default setting.
MERGE - Will merge RATS data with data currently in B34S.
Note: If this option is given, it is imperative that
the prior B34S paragraph end with B34SRUN$. Unless
This is done, the data will not be present in B34S to
perform the merge.
CORR - Will make B34S produce correlation matrix.
COV - Will make B34S produce covariance matrix.
Parameters for GETRATS sentence.
MACRO(k1) - Specifies name for B34S MACRO created on unit SAVEUNIT.
Note: If MACRO not set and BROWSE not in effect,
GETRATS will load variables in RATS PORTABLE file
into B34S. A maximum of 8 characters can be supplied.
RATSUNIT=n1 - Sets RATS file unit. Default = 45.
SAVEUNIT=n2 - Sets B34S MACRO save unit. Default = 46.
DISP=k3 - DISP keywords are ADD (the default) or REWIND. If
REWIND has been specified, prior B34S MACROS on
SAVEUNIT will be erased.
HEADING=(' ') - Optionally set up to 32 characters for B34S DATA
command heading.
RATSVAR(var1,var2) - Sets RATS variables to load. If this parameter
is not supplied, all variables will be loaded.
The variables OBSNUM or JULIAN_ are always
produced.
RENAME(OLDRATSV1,NEWV1,OLDRATSV22,NEWV2) This option allows a recode
of the variable names in the RATS file. This is
useful if the names in the RATS file are the
same as an active B34S variables. The keywork RECODE
can be used in place of RENAME.
SFORMAT(K) If k = NORMAL the format 4E18.10 is used. If
k = HIGHACCURACY, the format 3E24.16 is used.
The following parameters only have meaning if MERGE was supplied.
B34SBY(k1) - Specify the by variable for the merge. If the
B34SBY parameter is not supplied the B34S
observation number is used.
RATSBY(k2) - Specify the RATS by variable. The default is
the RATS identifier. If this is a date variable,
it will be automatically converted to a julian date
and saved as OBSNUM or _JULIAN_ respectively.
Usage note: The RATS program PORTABLE FILE consists of:
- Name line
- Start stop line
- optional comments
- Line of ================
- Data
An example of such a file is given below.
DPRICE
Annual data from 1940:01 to 1986:01
=====================================================================
1940:01 1.00000000 9.70000000 9.30000000 3.20000000
1944:01 2.10000000 2.30000000 18.20000000 9.00000000
1948:01 2.70000000 -1.80000000 5.80000000 5.90000000
1952:01 0.90000000 0.60000000 -0.50000000 0.40000000
1956:01 2.90000000 3.00000000 1.80000000 1.50000000
1960:01 1.50000000 0.70000000 1.20000000 1.60000000
1964:01 1.20000000 1.90000000 3.40000000 3.00000000
1968:01 4.70000000 6.10000000 5.50000000 3.40000000
1972:01 3.40000000 8.80000000 12.20000000 7.00000000
1976:01 4.80000000 6.80000000 9.00000000 13.30000000
1980:01 12.40000000 8.90000000 3.90000000 3.80000000
1984:01 4.00000000 3.80000000 1.10000000
OLSRES
Annual data from 1940:01 to 1986:01
=====================================================================
1940:01 NA 6.85691470 2.13441165 -3.76685258
1944:01 -1.83613205 -1.08960867 14.71102344 -2.38872352
1948:01 -4.11780075 -5.48771233 4.34806511 0.67208543
1952:01 -4.37759851 -2.19340135 -3.14434952 -1.69782615
1956:01 0.35501836 -0.78708022 -2.03676416 -1.74055684
1960:01 -1.59150501 -2.39150501 -1.49403347 -1.34245318
1964:01 -1.94118896 -1.04245318 0.10975922 -1.03549993
1968:01 0.86323584 1.41860881 0.12303360 -1.67886274
1972:01 -0.63549993 4.76450007 5.48156714 -1.40768693
1976:01 -1.02412189 2.06892486 3.27524600 6.48219925
1980:01 3.44578969 0.39294518 -2.86811681 -0.48391965
1984:01 -0.23423571 -0.53360359 -3.13423571
YHAT
Annual data from 1940:01 to 1986:01
=====================================================================
1940:01 2.00000000 16.55691470 11.63990252 -0.36628748
1944:01 0.38931504 1.32229254 33.02538754 6.92144000
1948:01 -1.22092998 -7.16842246 10.21194005 6.72955003
1952:01 -3.31890247 -1.49627746 -3.55091996 -1.21794245
1956:01 3.34598504 2.33467254 -0.11377996 -0.13234996
1960:01 0.01300754 -1.58699246 -0.19937246 0.35836504
1964:01 -0.63544496 0.95836504 3.61919754 2.09241004
1968:01 5.68622004 7.66252753 5.78419253 1.87490753
1972:01 2.89241004 13.69241004 17.87597502 5.82859001
1976:01 3.94812003 9.01407503 12.44502503 19.97907002
1980:01 16.09561251 9.53168501 1.22752252 3.45014753
1984:01 3.89860003 3.40169503 -1.90139997
Note that DPRICE is 1.0 in the first period, OLSRES = NA in the first
period and YHAT is 2.0 in the first period. Reading this file into
B34S will result in the first observation being dropped since
OLSRES = NA for observation 1. Assume that the user had saved
an ARCH residual and the first value was 0.0 not NA. In loading
into B34S there are two options. The most cautious is to set the
0.0 value to NA and B34S will automatically drop this value. A
more dangerous approach is to set ALL the start dates to 1940:02.
If this change is made, B34S will automatically start reading
the second observation.
For any data passing using portable files, be sure
and check means in RATS and B34S. Since the current release
of RATS does not allow for the user to make a high accuracy
format for a RATS portable file build, some accuracy can be lost
in the transfer of data. This is especially true for residuals.
If high accuracy is needed, custom formats will have to be used.
RATS in version 4.10 has changed the form of the RATS portable
file for time series. B34S has been modified to read the RATS 4.10
portable time series file. This means that if RATS 4.02 is run the
user must not use the PASSASTS option on the RATS sentence of
the PGMCALL paragraph. Users are cautioned to carefully check the
reading of data in *.POR files to insure that the data has been
passed correctly.
COMMENT sentence.
COMMENT=(' ')
(' ') $
The Comment sentence is used to input up to 56 characters of text
per line [(i. e. within the ( ) ]. There is no limit to the number of
lines supplied. These comments will be appended to the files saved.
This command does nothing if FILEADD or GETSCA commands are used.
Examples
a. Browse SCA FSAVE file on UNIT 50
b34sexec scainput $
getsca browse scaunit=50$
b34srun$
b. Load SCA FSAVE DATASET RUN1 into B34S.
b34sexec scainput$
getsca dataset=run1 $
b34srun$
c. Load SCA FSAVE DATASET RUN1 on unit 60 into B34S MACRO
RUN66 in library on unit 51. Optional comments added.
b34sexec scainput$
getsca dataset=run1 scaunit=60
macro(run66) saveunit=51 disp=add
heading=('test run1')$
comment=('data from sca run 66 revised')
('source revised')$
b34srun$
d. Save variables X1, X3, X4 in B34S MACRO MYRUN on unit 54.
Note that prior B34S paragraph must end with B34SRUN $ in
place of B34SEEND$ .
b34sexec scainput$
makeb34s var=(x1,x3,x4) macro(myrun) saveunit=54$
comment=('data from project # 1 ')$
b34srun$
e. Save variables X1, X3, X4 in SCA DATASET TEST1 on unit
55. Note that prior B34S paragraph ended with B34SRUN $
in place of B34SEEND$ .
b34sexec scainput$
makesca var=(x1,x3,x4) dataset=test1 scaunit=55$
comment=('data from project # 1 ')$
b34srun$
f. Read B34S MACRO file from unit 52 and add to files
on unit 55.
b34sexec scainput$
fileadd b34sin(52) b34sout(55)$ b34srun$
g. Read B34S MACRO file from unit 46 and add to files
on unit 55 changing names of macros to RUN1,......
b34sexec scainput$
fileadd b34sout(55) udsn(run)$ b34srun$
h. Read SCA FSAVE file from unit 52 and add to files
on unit 55.
b34sexec scainput$
fileadd scain(52) scaout(55)$ b34srun$
i. Read SCA FSAVE file from unit 44 and add to files
on unit 55 changing names of macros to RUN1,......
b34sexec scainput$
fileadd scaout(55) udsn(run)$ b34srun$
j. Read SCA FSAVE file from unit 55 change names in place
b34sexec scainput$
fileadd scain(55) scaout(55) udsn=run$
b34srun$
l. Load SCA FSAVE DATASET RUN1 into B34S and perform a
merge. Default settings are used. The SCA FSAVE file
contains a variable OBSNUM and its values are within
the number of observations currently in B34S.
b34sexec scainput$
getsca dataset=run1 merge$
b34srun$
m. Load SCA FSAVE DATASET RUN1 into B34S and perform a
merge. The SCA FSAVE file contains a variable TT which
is matched with the variable B34STT in B34S. The values
of TT are within the values of B34STT. The SCA FSAVE
variables of X, Y and Z are recoded as SCAX, SCAY and
SCAZ. The new B34S data loading step will produce a
correlation matrix.
b34sexec scainput$
getsca dataset=run1 merge b34sby(b34stt) corr
scaby(tt)
recode(x,scax,
y,scay,
z,scaz) $
b34srun$
Note: If it was desired to made a SCA FSAVE file from
the merged data, then follow the code in example
l or m with the code in example e.
n. Browse RATS PORTABLE file on UNIT 50
b34sexec scainput $
getrats browse ratsunit=50$
b34srun$
o. Save variables X1, X3, X4 in RATS PORTABLE file on unit
55. Note that prior B34S paragraph ended with B34SRUN $
in place of B34SEEND$ . Optional comments are supplied.
b34sexec options open('rats.dat') unit(55) disp=new$
b34sexec scainput$
makerats var=(x1,x3,x4) ratsunit=55$
comment('test of passing x1 x3 and x4')$
b34srun$
p. Load RATS PORTABLE file into B34S and perform a
merge. Default settings are used. The RATS file
contains a variable OBSNUM and its values are within
the number of observations currently in B34S.
b34sexec options open('rats.dat') unit(45) disp=old$
b34srun$
b34sexec scainput$
getrats merge ratsby(obsnum)$
b34srun$
q. Load RATS PORTABLE file into B34S and perform a
merge. The RATS file contains date variable which
is matched with the variable JULIAN in B34S. Note
that the RATSBY option is not needed since either
the julian value of a date OR a obs number will be
found.
b34sexec options open('rats.dat') unit(45) disp=old$
b34srun$
b34sexec scainput$
getrats merge b34sby(julian)$
b34srun$
r. Make RATS undated and dated PORTABLE files and use
stand alone RATS program to read them back in. The
option SFORMAT=HIGHACCURACY has been used to pass
16 significant digits of accuracy.
b34sexec options include('c:\b34slm\gas.b34')$ b34srun$
b34sexec options open('c:my1.por') disp=unknown unit=55$ b34srun$
b34sexec options clean=55$ b34srun$
b34sexec scainput $ makerats ratsunit=55 sformat=highaccuracy$
b34seend$
b34sexec options include('c:\b34slm\gas.b34')$ b34srun$
b34sexec options setmy(12,1930)$ b34seend$
b34sexec options open('c:my2.por') disp=unknown unit=55$ b34srun$
b34sexec options clean=55$ b34srun$
b34sexec scainput $ makerats ratsunit=55 sformat=highaccuracy$
b34seend$
The next RATS stand alone program will read the above files.
* read a rats file
all 400
open data my1.por
data(ORG=OBS,FORMAT=PORTABLE)
table
PRINT
end XXX
cal 1925 1 12
all 400
open data my2.por
data(ORG=OBS,FORMAT=PORTABLE)
table
PRINT
JCL notes. At UIC the following JCL is used to perform the indicated
function.
1. Refer to an existing file and allow a write.
//GO.FT44F001 DD DSN=BEC4346.MYDATA,DISP=SHR
2. Refer to an existing file and prevent a write.
//GO.FT44F001 DD DSN=BEC4346.MYDATA,DISP=SHR,LABEL=(,,,IN)
3. Create a new file.
//GO.FT44F001 DD DSN=BEC4346.MYDATA,DISP=(NEW,CATLG),UNIT=TPUSER,
// SPACE=(TRK,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=3600)