Hi All,
In server jobs if i give @DATE as derivation its converting to Datastage internal format.
As below:
2015-02-13-->17211
How to acheive the same in parallel jobs.
Thanks
Ramakrishna
How to convert date in Datastage internal format in Parallel
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 37
- Joined: Tue Mar 26, 2013 12:02 pm
- Location: INDIA
I'm guessing this is an academic question but would be curious if there were a real world reason behind it.
Parallel jobs are unaware of Server jobs' internal date format.
A parallel concept in Parallel jobs can be found in the JulianDayFromDate() function. It returns an integer based on the input date, however it's a different integer than the one chosen for Server jobs (Server jobs' zero date chosen by Mr. Pick?).
One could add or subtract a value to convert Sequence/Server jobs' internal day number back and forth with a Julian day number.
Parallel jobs are unaware of Server jobs' internal date format.
A parallel concept in Parallel jobs can be found in the JulianDayFromDate() function. It returns an integer based on the input date, however it's a different integer than the one chosen for Server jobs (Server jobs' zero date chosen by Mr. Pick?).
One could add or subtract a value to convert Sequence/Server jobs' internal day number back and forth with a Julian day number.
Choose a job you love, and you will never have to work a day in your life. - Confucius
-
- Participant
- Posts: 37
- Joined: Tue Mar 26, 2013 12:02 pm
- Location: INDIA
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Parallel jobs automatically use their own internal format for dates (indeed for most other data types too). See chapter 2 of Parallel Job Developer's Guide for details.
The parallel job internal format is not the same as the server job internal format, but why would you need the latter in a parallel job? (They are both offsets from a particular "day zero" but, as Craig suggests, a different "day zero".)
The parallel job internal format is not the same as the server job internal format, but why would you need the latter in a parallel job? (They are both offsets from a particular "day zero" but, as Craig suggests, a different "day zero".)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.