Thanks for the replies. Posting what I ended up doing once I remembered I was working with embedded SQL in an RPG program:
exec sql
select CURDAT info :#dateusa
from datefile
#datejul = %dec(%char(%date(#dateusa:*usa):*longjul0):9:0);
This changes yyyymmdd to yyyyddd.
exec sql
select CURDAT info :#dateusa
from datefile
#datejul = %dec(%char(%date(#dateusa:*usa):*longjul0):9:0);
This changes yyyymmdd to yyyyddd.
Comment