I am really new to SAS am working on a mainframe program that reads in data that has several occurs (the copybook is a COBOL layout) and I have the following code :
I=0;
DO while (I <= carr_edit_cd_cnt);
INPUT
@AT edit_trlr_ind_cd $1.
@AT+1 nch_edit_cd $char4.
@;
AT=AT+5;
I=I+1;
END;
This appears to be correct, but when I put the dataout, I am only seeing the one record when I know that the carr_edit_cd_cnt has a value of 3. Do I need to write out separate datasets as I go and merge later or do I have to do the similar array on the put statement? Any help would be greatly appreciated.
Thanks.
GoUSC
I=0;
DO while (I <= carr_edit_cd_cnt);
INPUT
@AT edit_trlr_ind_cd $1.
@AT+1 nch_edit_cd $char4.
@;
AT=AT+5;
I=I+1;
END;
This appears to be correct, but when I put the dataout, I am only seeing the one record when I know that the carr_edit_cd_cnt has a value of 3. Do I need to write out separate datasets as I go and merge later or do I have to do the similar array on the put statement? Any help would be greatly appreciated.
Thanks.
GoUSC