data RuntimeStats;
length PgmName Status $100 PeopleNotified $ 400 AttachRowCount $4000
ErrorFound $1000 unix_prcs_id $20 program_restart_step 8 Email_Subject $200
dt_prcs_data $10;
id=&nextid;
userid_exec="&userid";
unix_prcs_id="&sysjobid";
PgmName="&PgmName";
Status="RUNNING";
PeopleNotified="";
AttachRowCount="";
Rundate=today();
StartTime=input("&StartTime.",datetime23.);
EndTime=.;
ExecTime_min=.;
ErrorFound="";
program_restart_step=&program_step;
dt_prcs_data="&dt_prcs_data";
format id z10. Rundate mmddyy10. StartTime datetime23. EndTime datetime23. ExecTime_min;
run;
proc sql %if %upcase(&debug) eq Y %then %do; feedback %end; ;
insert into rstats.runtimestats
select id, userid_exec, unix_prcs_id, PgmName,put(&dt_prcs,mmddyy10.) as dt_prcs, "%superq(logfile)" as Log, Status, PeopleNotified, AttachRowCount,
Rundate, StartTime, EndTime, ExecTime_min,ErrorFound, program_restart_step, Email_Subject, dt_prcs_data
from RuntimeStats A;
quit;
This code was running fine in SAS 9.1 and started throwing below WARNING in 9.3
WARNING: Character expression will be truncated when assigned to character column AttachRowCount.