Download Internationally Developed Data Analysis and Management

Transcript
122
Checking the Merging of Records (MERCHECK)
14.6
Setup Structure
$RUN MERCHECK
$FILES
File specifications
$SETUP
1. Label
2. Parameters
3. Record descriptions (repeated as required)
$DATA (conditional)
Data
Files:
FT02
DATAxxxx
DATAyyyy
PRINT
14.7
rejected records ("bad case" records)
when WRITE=BADRECS specified
input data (omit if $DATA used)
output data (good cases)
results (default IDAMS.LST)
Program Control Statements
Refer to “The IDAMS Setup File” chapter for further descriptions of the program control statements, items
1-3 below.
1. Label (mandatory). One line containing up to 80 characters to label the results.
Example:
CHECKING THE MERGE OF RECORDS IN STUDY 95 DATA
2. Parameters (mandatory). For selecting program options.
Example:
MAXE=25 RECORDS=8 IDLOC=(1,5)
INFILE=IN/xxxx
A 1-4 character ddname suffix for the input Data file.
Default ddname: DATAIN.
MAXCASES=n
The maximum number of cases to be used from the input file.
Default: All cases will be used.
MAXERR=10/n
Maximum number of cases with errors. When n + 1 error cases occur, execution terminates.
Cases before the BEGINID, those out of sort order, and records without the constant do not
count as error cases. Error cases are those with invalid, duplicate, or missing records.
OUTFILE=OUT/yyyy
A 1-4 character ddname suffix for the output Data file.
Default ddname: DATAOUT.