dssearch returning <none>

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

dssearch returning <none>

Post by zulfi123786 »

Hi,

There seems to be a problem with the dssearch command (Using DataStage 8.5)

It always returns <none> for no good reason.

Tried finding a job "DFPLookUpTableLoadDB2Job" using dsjob and its listed

Code: Select all

etlld0001|zsyed10|/u/zsyed10> dsjob -jobinfo dev_fab DFPLookUpTableLoadDB2Job
Job Status      : RUN with WARNINGS (2)
Job Controller  : not available
Job Start Time  : Thu Jun 26 09:17:36 2014
Job Wave Number : 1
User Status     : not available
Job Control     : 0
Interim Status  : NOT RUNNING (99)
Invocation ID   : not available
Last Run Time   : Thu Jun 26 09:18:01 2014
Job Process ID  : 0
Invocation List : DFPLookUpTableLoadDB2Job
Job Restartable : 0

Status code = 0
Now the same thing using dssearch

Code: Select all

etlld0001|zsyed10|/u/zsyed10> dssearch -ljobs -matches -oc -oj dev_fab DFPLookUpTableLoadDB2Job
<none>

Status code = 0
etlld0001|zsyed10|/u/zsyed10> dssearch -ljobs -matches -oc -oj dev_fab DFPLookUpTableLoadDB2Job*
<none>

Status code = 0
But it looks like the Sequence search works fine

Code: Select all

etlld0001|zsyed10|/u/zsyed10> dssearch -ljobs -usedby dev_fab DFPLookUpTableLoadDB2Job
DFPExtractParallelDB2All_Seq

Status code = 1
Any one faced this before ?

Also, I searched for dssearch in Server job guide (where it was in 7.5) and also in the Programmers guide but didn't find it. Is it listed anywhere else or is it no longer supported in 8.5 ?

Thanks
- Zulfi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Any chance it is this?
-craig

"You can never have too many knives" -- Logan Nine Fingers
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Its a Development environment Craig, hence the job designs exist so not the case pointed out.
- Zulfi
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I tried your syntax in 8.7 and got the same result.

When I added the -sub option after -matches, then I got a good result.

The wildcard on job name works using *part_of_job_name* syntax. Note that the part you match the job name on is case sensitive.

Searching the knowledge center on "dssearch" results in descriptions from 8.0 and 8.1. It looks like in newer versions that this command is no longer documented.
Choose a job you love, and you will never have to work a day in your life. - Confucius
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

According to this technote, the 8.1 release notes say that the dssearch command is not supported / not fully supported because certain options have known issues.

JR35342: DSSEARCH COMMAND IS NOT NAVIGATING SUB-CATEGORIES CORRECTLY

Now we know why the command is undocumented on versions 8.5, 8.7, 9.1, and 11.3.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply