View previous topic :: View next topic |
Author |
Message |
saravanan80 Beginner
Joined: 25 Dec 2006 Posts: 14 Topics: 6
|
Posted: Mon Sep 24, 2007 11:34 am Post subject: JCL Utility |
|
|
Is there any JCL command to convert the date from
Gregarian Format to Julian Format .
Julian format to Gregarian Format. |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Sep 24, 2007 11:53 am Post subject: |
|
|
Please show an example of the input and output date values for each case.
Please give the starting position, length and format of the input and output date fields for each case.
Please give the RECFM and LRECL of the input file. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
saravanan80 Beginner
Joined: 25 Dec 2006 Posts: 14 Topics: 6
|
Posted: Mon Sep 24, 2007 12:14 pm Post subject: |
|
|
The format is
Julian --- 2007 152
it means the year 2007 and 152nd day |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Sep 24, 2007 1:03 pm Post subject: |
|
|
That doesn't answer my questions (e.g. is that CH format, ZD format, PD format, something else? what is the starting position? what is the length? what would the output look like? etc). Please read my post again and answer ALL of the questions. If you can't find the time to answer ALL of my questions, then I can't find the time to help you (but maybe somebody else can). _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
saravanan80 Beginner
Joined: 25 Dec 2006 Posts: 14 Topics: 6
|
Posted: Mon Sep 24, 2007 1:22 pm Post subject: |
|
|
HOw to covert from Julian date(2007119) to Gregorian(2007/04/29) date using JCL.
I have an input contains like Current date,next date are in Julian formate.
2007119 2007120
I want display report(from julian to Gregorian) like:
Current_date Next-Date
2007/04/29 2007/04/30 |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Sep 24, 2007 2:09 pm Post subject: |
|
|
What Frank is asking for is the data type!
In your file, is the field:
- packed decimal x'2007119F', or
- zoned decimal x'F2F0F0F7F1F1F9', or what? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Sep 24, 2007 2:26 pm Post subject: |
|
|
No - there is not a JCL command to convert dates - JCL tells the computer what programs to run. Rexx will very nicely do conversions on dates, most other languages need a bit of coding. But, enterprise compiled languages may have access to nifty date routines that I am not aware of as we are not that advanced in our place. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
|
Back to top |
|
 |
|
|