DS_JOBS
Moderators: chulett, rschirm, roy
DS_JOBS
DS 7.0
OS : UNIX
job type parallel
I was reading the old post and came across one of the posts. I pasted that post below..Here are my questions.
1. I found uv, under /xxxx/Ascential/DataStage/DSEngine/bin/, is this the $DSBIN you are referring to.
2. I tried all this following commands, ( PSEXPSLSE is my job name), but this command returned nothing. Can you tell me what I am missing.
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME = 'PSEXPSLSE'"
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME = 'PSEXPSLSE'
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME='PSEXPSLSE'
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME='PSEXPSLSE'"
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME='PSEXPSLSE'";
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME='PSEXPSLSE';
3. Like DS_JOBS, what are other tables available, importantly where would I this documentation?
Thanks in advance....
your post.......
. $DSHOME/dsenv
PROJDIR=<YOUR PROJECT DIRECTORY>
cd $PROJDIR
JOBNO=`$DSBIN/uv "select * from DS_JOBS where NAME='<JOB NAME>';" |grep No.......... | awk '{print $2}'`
$DSHOME/bin/uv "select TIMESTAMP, SEVERITY, FULL.TEXT from RT_LOG$JOBNO where SEVERITY = 'Warning' AND EVAL \"@ID\" NOT LIKE '//%' AND @ID >= CAST(EVAL \"FIELD(TRANS('RT_LOG$JOBNO','//JOB.STARTED.NO',1,'X'), @SVM, 1)\" AS DECIMAL) order by @ID;" > <YOUR LOG FILE>
OS : UNIX
job type parallel
I was reading the old post and came across one of the posts. I pasted that post below..Here are my questions.
1. I found uv, under /xxxx/Ascential/DataStage/DSEngine/bin/, is this the $DSBIN you are referring to.
2. I tried all this following commands, ( PSEXPSLSE is my job name), but this command returned nothing. Can you tell me what I am missing.
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME = 'PSEXPSLSE'"
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME = 'PSEXPSLSE'
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME='PSEXPSLSE'
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME='PSEXPSLSE'"
/xxx/DataStage/DSEngine/bin:==> uv "select * from DS_JOBS where NAME='PSEXPSLSE'";
/xxx/DataStage/DSEngine/bin:==> uv select * from DS_JOBS where NAME='PSEXPSLSE';
3. Like DS_JOBS, what are other tables available, importantly where would I this documentation?
Thanks in advance....
your post.......
. $DSHOME/dsenv
PROJDIR=<YOUR PROJECT DIRECTORY>
cd $PROJDIR
JOBNO=`$DSBIN/uv "select * from DS_JOBS where NAME='<JOB NAME>';" |grep No.......... | awk '{print $2}'`
$DSHOME/bin/uv "select TIMESTAMP, SEVERITY, FULL.TEXT from RT_LOG$JOBNO where SEVERITY = 'Warning' AND EVAL \"@ID\" NOT LIKE '//%' AND @ID >= CAST(EVAL \"FIELD(TRANS('RT_LOG$JOBNO','//JOB.STARTED.NO',1,'X'), @SVM, 1)\" AS DECIMAL) order by @ID;" > <YOUR LOG FILE>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You missed the one combination that works, with the semi-colon inside the quoted string.
Ascential/IBM provides no documentation as to the other tables in, and structure of, the Repository. This is a deliberate choice; they reserve the right to change anything at any time, and do.
Some folks here, however, are experienced with the database on which DataStage was originally built, and have been able to figure stuff out. Much of that is posted here, and/or can be discerned from the SQL in Kim Duke's tools.
Code: Select all
uv "select * from DS_JOBS where NAME = 'PSEXPSLSE';"
Some folks here, however, are experienced with the database on which DataStage was originally built, and have been able to figure stuff out. Much of that is posted here, and/or can be discerned from the SQL in Kim Duke's tools.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi,
When i try the command i get error. The command i tried and location where i tried, and result is as follows.
Correct me if iam wrong or if something is wrong.....
regards
kumar
When i try the command i get error. The command i tried and location where i tried, and result is as follows.
Code: Select all
/ds/Ascential/DataStage/DSEngine/bin > uv "select * from DS_JOBS;"
exec(): 0509-036 Cannot load program uv because of the following errors:
0509-150 Dependent module libgciudt6.so could not be loaded.
0509-022 Cannot load module libgciudt6.so.
0509-026 System error: A file or directory in the path name does not exit
regards
kumar
Possible cause of the problem is the required libraries are not loaded due to the LIBRARY PATH in the environment variable. Check the LIBRARY PATH variable is set in DSENV file, if yes execute the DSENV from your $DSHOME directory so that all library path would be set then try executing the command. It should work. If LIBRARY PATH variable is not set, look at PDF file (Hope Installation and Upgrade guide, how to set DSENV file) to set the required environment variable.
HTWH.
Regards
Saravanan
HTWH.
Regards
Saravanan
Kumar - did you source 'dsenv' first?
This is what Saravanan meant by 'executing' it to make sure all your environment variables and paths are setup correctly.
Code: Select all
/ds/Ascential/DataStage/DSEngine > . ./dsenv
/ds/Ascential/DataStage/DSEngine > cd bin
/ds/Ascential/DataStage/DSEngine/bin > uv "select * from DS_JOBS;"
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Actually, you can - it just doesn't return any rows.
Move into a project directory and it will actually produce output:
Assuming default location patterns.
Move into a project directory and it will actually produce output:
Code: Select all
/ds/Ascential/DataStage/DSEngine > . ./dsenv
/ds/Ascential/DataStage/DSEngine > cd ../Projects/YourProject
/ds/Ascential/DataStage/Projects/YourProject > $DSHOME/bin/uv "select * from DS_JOBS;"
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Kumar has two problems.
You can't execute an unqualified uv command from the bin directory on UNIX unless . (the current directory) is included in your command directory search list (that is, the PATH environment variable).
You can't successfully execute a uv (or dssh) command in a directory that is not also an account (that is, contains a VOC file). To query the DS_JOBS table you not only need to be in an account, you need to be in an account in which that VOC file contains an entry for the DS_JOBS account (or can refer to one by qualifying the table name with a schema name).
You can't execute an unqualified uv command from the bin directory on UNIX unless . (the current directory) is included in your command directory search list (that is, the PATH environment variable).
You can't successfully execute a uv (or dssh) command in a directory that is not also an account (that is, contains a VOC file). To query the DS_JOBS table you not only need to be in an account, you need to be in an account in which that VOC file contains an entry for the DS_JOBS account (or can refer to one by qualifying the table name with a schema name).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
HI,
I still hold this issue.
I could search 3 similar post, couldnt find any useful information in all the post.
dssh can be executed. $DSHOME/lib has been exporte in PATH (that is where libgciudt6.so actually resides). Also $DSHOME/bin. I had given necessary permission to the file. And executing this from dsadm. Still the same
I still hold this issue.
Code: Select all
/dsproject/DS_PROJ > $DSHOME/bin/uv
exec(): 0509-036 Cannot load program /dsadmhome/Ascential/DataStage/DSEngine/bin/uv because of the following errors:
0509-150 Dependent module libgciudt6.so could not be loaded.
0509-022 Cannot load module libgciudt6.so.
0509-026 System error: A file or directory in the path name does not exist.
dssh can be executed. $DSHOME/lib has been exporte in PATH (that is where libgciudt6.so actually resides). Also $DSHOME/bin. I had given necessary permission to the file. And executing this from dsadm. Still the same
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Try it with dssh rather than uv.
Code: Select all
/ds/Ascential/DataStage/DSEngine > . ./dsenv
/ds/Ascential/DataStage/DSEngine > cd ../Projects/YourProject
/ds/Ascential/DataStage/Projects/YourProject > $DSHOME/bin/dssh "select * from DS_JOBSwhere NAME='PSEXPSLSE';"
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The uv command does a little more in guaranteeing that you have a clean environment in which to work. It eventually invokes dssh (which is a synonym for uvsh).
Before that, it has failed to find the library libgciudt6.so - could be an issue with how your LD_LIBRARY_PATH environment variable is set, could be that the library is not in its expected location, could be that its name is misspelled. Use find to determine where libgciudt6.so is, and make sure that its parent directory is in your shared library path environment variable as set in the dsenv file. Once you have that correct, you can go back to using uv rather than dssh, since it's a cleaner approach.
Before that, it has failed to find the library libgciudt6.so - could be an issue with how your LD_LIBRARY_PATH environment variable is set, could be that the library is not in its expected location, could be that its name is misspelled. Use find to determine where libgciudt6.so is, and make sure that its parent directory is in your shared library path environment variable as set in the dsenv file. Once you have that correct, you can go back to using uv rather than dssh, since it's a cleaner approach.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: