I can't figure out how to get iMonth to reflect a three character alpha output for dateFileName i.e. OUTPUT: 12 AUG 2009.
The second part of this request for assistance is to ask how to convert the 2009 output to 09 output instead. FINAL OUTPUT: 12 AUG 09
SCRIPT:
string datefilename
proc main
clear
datefilename = ""
file_date()
endproc
proc file_date
integer iMonth, iDay, iYear, iHour, iMin, iSec
ltimeints $LTIME iMonth iDay iYear iHour iMin iSec
strfmt dateFileName " %02d %02d %02d" iYear iDay iMonth
termmsg dateFileName
endproc
The second part of this request for assistance is to ask how to convert the 2009 output to 09 output instead. FINAL OUTPUT: 12 AUG 09
SCRIPT:
string datefilename
proc main
clear
datefilename = ""
file_date()
endproc
proc file_date
integer iMonth, iDay, iYear, iHour, iMin, iSec
ltimeints $LTIME iMonth iDay iYear iHour iMin iSec
strfmt dateFileName " %02d %02d %02d" iYear iDay iMonth
termmsg dateFileName
endproc