Hi everyone …
I need some help with my SAS program. I am getting some unexpected results in my ouput and I am not sure where to go to resolve them. I run this via batch JCL on a mainframe running z/OS.
Here is my program:
Here is a sample of the output:
[tt]ACCOUNT NUMBER 0123456789ABCDEF EFFECTIVE
080908
XXXXXXXXXXXXXXXX 0000001001000100 080908
XXXXXXXXXXXXXXXX 1000000000111011 080908
080908[/tt]
What is appearing in my ouput that is unwanted is line two and line five. Does anyone have a suggestion on how to prevent lines two and five from printing?
Also, a second question, in my SAS log, there appears a segment like the following:
[tt]62,899,234 RECORDS WERE READ FROM THE INFILE INPUT1.
10,916 RECORDS WERE WRITTEN TO THE FILE OUTPUT1.
THE DATA SET WORK.R001 HAS 10,918 OBSERVATIONS AND 7 VARIABLES.
THE DATA STATEMENT USED 229.87 CPU SECONDS AND 12831K.[/tt]
Does anyone know if there is a way to append my output file with this blurb?
Thanks in advance everyone!
ks01
I need some help with my SAS program. I am getting some unexpected results in my ouput and I am not sure where to go to resolve them. I run this via batch JCL on a mainframe running z/OS.
Here is my program:
Code:
OPTIONS;
DATA R001 (KEEP= ISSUENUM SATEFFDT LSTGDATA ACCTBIN ACTNCD REGNSUMM PRGEDT);
INFILE INPUT1;
INPUT @01 RECTYP $CHAR1. @ ;
IF RECTYP = '0' THEN
DO;
INPUT @09 ISSUENUM $CHAR2.
@12 SATEFFDT MMDDYY6. @ ;
END;
RETAIN SATEFFDT;
IF RECTYP = '1' THEN
DO;
INPUT @03 LSTGDATA $CHAR16.
@03 ACCTBIN $CHAR6.
@22 ACTNCD $CHAR2.
@28 REGNSUMM $CHAR16.
@45 PRGEDT YYMMDD6. @ ;
END;
FILE OUTPUT1;
IF _N_ = 1 THEN DO ;
PUT @01 'ACCOUNT NUMBER'
@21 '0123456789ABCDEF'
@38 'EFFECTIVE' ;
END ;
PUT @01 LSTGDATA
@21 REGNSUMM
@38 SATEFFDT MMDDYY6. ;
RETURN ;
[tt]ACCOUNT NUMBER 0123456789ABCDEF EFFECTIVE
080908
XXXXXXXXXXXXXXXX 0000001001000100 080908
XXXXXXXXXXXXXXXX 1000000000111011 080908
080908[/tt]
What is appearing in my ouput that is unwanted is line two and line five. Does anyone have a suggestion on how to prevent lines two and five from printing?
Also, a second question, in my SAS log, there appears a segment like the following:
[tt]62,899,234 RECORDS WERE READ FROM THE INFILE INPUT1.
10,916 RECORDS WERE WRITTEN TO THE FILE OUTPUT1.
THE DATA SET WORK.R001 HAS 10,918 OBSERVATIONS AND 7 VARIABLES.
THE DATA STATEMENT USED 229.87 CPU SECONDS AND 12831K.[/tt]
Does anyone know if there is a way to append my output file with this blurb?
Thanks in advance everyone!
ks01