Hi, I want to convert a julian date format yyyyddd to gregorian date format in yyyy-mm-dd. that is I need the ' - ' in the date format. Please let me know how to acheive that
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
bamohan,
What is the starting position and format (CH, PD?) of your input julian date?
What is the starting position of your output gregorian date.
What is the RECFM and LRECL of the input file and output file?
CICS guy,
DATE1(c) creates a constant for the current date. The OP is asking about converting a field in julian date format to a field in gregorian date format which has nothing to do with DATE1(c).
Input File RECORD LENTH is 814 and O/p File REC LENGTH is 58. Record Format is FB for both.
The Input file Julian date starts from the position 484 - 487. Julian date is in the format yyyyddd. The o/p gregorian date should start from the position 18 in the o/p file and in the format YYYY-MM-DD.