Maximum and Minimum JOBNO in a project

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ecclesr
Premium Member
Premium Member
Posts: 260
Joined: Sat Apr 05, 2003 7:12 pm
Location: Australia

Maximum and Minimum JOBNO in a project

Post by ecclesr »

I am trying to find the minimum and maxium JOBNO is a project

SELECT MAX(JOBNO) FROM DS_JOBS;

Returns 999

But the actual number i was expecting was 2677 ??

Thanking you all in advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's because JOBNO has a data type of VarChar. Try:

Code: Select all

SELECT MAX(CAST(JOBNO AS INTEGER)) FROM DS_JOBS;
or

Code: Select all

LIST DS_JOBS MAX JOBNO DET.SUP
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Ray - Everytime you give out some new stuff. May I know what 'DET.SUP' used in your query for. Is it to suppress the Description information?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Detail Suppression. Run the query with and without and you shall see, my young Padawan.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Prashantoncyber
Participant
Posts: 108
Joined: Wed Jul 28, 2004 7:15 am

Post by Prashantoncyber »

Can anybody suggest where (mean any pdf or doc) list of such kinds of commands can be found out.
thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Do a google on "Universe ODBC guide" and it will lead you to quite a few other useful documents.

HTH

Ramesh
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

chulett wrote:Detail Suppression. Run the query with and without and you shall see, my young Padawan.
Thats obvious from you, Jedi Master.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I defer that title to Ray... err, I mean Mr Wurlod. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Unlike Yoda I don't put verbs at the ends of sentences. Unless in Latin, of course.
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