How to convert date in Datastage internal format in Parallel

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ramakrishna459
Participant
Posts: 37
Joined: Tue Mar 26, 2013 12:02 pm
Location: INDIA

How to convert date in Datastage internal format in Parallel

Post by ramakrishna459 »

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why don't you let us know what problem you are trying to solve, why you think you need this. Then perhaps we can provide a more proper Parallel solution.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

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.

:wink:
Choose a job you love, and you will never have to work a day in your life. - Confucius
ramakrishna459
Participant
Posts: 37
Joined: Tue Mar 26, 2013 12:02 pm
Location: INDIA

Post by ramakrishna459 »

As a part of ETL migration we thought of converting server job date format to be generated by parallel job.But we couldnt acomplish by parallel job hence we used the same.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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".)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply