Page 1 of 1

How to read &PH& on UNIX

Posted: Fri Feb 11, 2005 3:23 pm
by Marley777
Hi, I have an error, but the log doesn't point out what the error is. Actually I don't get a fatal message at all, the job simply aborts. The job is a sequence job. I'm wondering if the phantom dir will provide more info. I can get drill down to the PH directory, but don't know what to do or how to access once I'm there.

Posted: Fri Feb 11, 2005 5:29 pm
by ray.wurlod
If you reset the job (not recompile, reset), any diagnostic information in &PH& should be transferred to the job log, in an event called "From previous run...".

Otherwise, &PH& is a directory within the project on the server. The file will have a name made up of the program name (DSD.RUN or DSD.StageRun for server jobs) followed by the pid, date and time in DataStage internal format.

Files that are only two lines long don't contain any useful information (the events are "started" and "finished" - while that's reassuring to know, it's not that helpful in diagnosis). So look for larger files.

Posted: Fri Feb 11, 2005 6:00 pm
by dsxuserrio
Stone
Did you check the logs for the individual jobs . The fatal error may be in there. Sort the jobs by start time and look for the first aborted job.
Thanks

Posted: Mon Feb 14, 2005 5:28 pm
by T42
Do a "ls -altr" to order the file listing, listing the most recent edited file last. That way, you can pinpoint the potential files that was created by your job. Look at the timestamp for the file and the timestamp of the job's run.

Posted: Thu Feb 18, 2010 1:56 am
by zulfi123786
"Otherwise, &PH& is a directory within the project on the server. The file will have a name made up of the program name (DSD.RUN or DSD.StageRun for server jobs) followed by the pid, date and time in DataStage internal format.
"
How about parallel jobs?

Posted: Thu Feb 18, 2010 2:08 am
by ray.wurlod
Yes, parallel jobs too.

DSD.RUN is a generic "job starting" routine that also appears for parallel jobs.

Beware that ampersand is a special character for the shell. You need to escape or hard quote. For example:

Code: Select all

cd MyProject
ls -alrt '&PH&

Code: Select all

cd MyProject
ls -alrt \&PH\