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
maheshsada
Participant
Posts: 69 Joined: Tue Jan 18, 2005 12:15 am
Post
by maheshsada » Mon Mar 10, 2008 4:34 am
Can any one please throw some info where the generated osh for a parallel job will be located/directory in UNIX server.
regards
Magesh S
ArndW
Participant
Posts: 16318 Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:
Post
by ArndW » Mon Mar 10, 2008 4:56 am
In the project directory for each job number there will be a subdirectory named RT_SC{nnn} which will contain osh scripts.
ray.wurlod
Participant
Posts: 54607 Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:
Post
by ray.wurlod » Mon Mar 10, 2008 4:58 am
Why?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
maheshsada
Participant
Posts: 69 Joined: Tue Jan 18, 2005 12:15 am
Post
by maheshsada » Mon Mar 10, 2008 5:16 am
Thanks for the info. How to find the Job number
I want to create a script which reads the OSH script to check for hardcoded parameter values in jobs so that peer reviews of the jobs can be done effectively. Any suggestion welcomed
regards
Magesh S
ArndW
Participant
Posts: 16318 Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:
Post
by ArndW » Mon Mar 10, 2008 5:48 am
If you troll through the DSXchange posts and look for "DS_JOBS" and job numbers you will see many examples of how to associate a job number with the appropriate job name; then you can search the sub-directories and look for your keyowords in the files.
ray.wurlod
Participant
Posts: 54607 Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:
Post
by ray.wurlod » Mon Mar 10, 2008 6:09 am
A combination of
find and
grep commands will do that for you. For example something like:
Code: Select all
find $projectdir -name '*.osh' -print | grep '&['
That way you don't need to know the location of the osh directories in advance.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.