Search found 4605 matches

by kduke
Wed Dec 15, 2004 4:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Validate each and every field in a record
Replies: 4
Views: 1281

I have 2 routines which will work on small sequential files because it reads the whole sequential file into one record. If you have large sequential files then you need to change this to openseq and readseq. * ----------------------------------------------------------------- * KgdParseSeqFile(Pa...
by kduke
Wed Dec 15, 2004 1:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Last Error
Replies: 16
Views: 2092

The whole section starting with if (EventType = 'Warning' or EventType = 'Fatal' or EventType = 'Error') then is not needed. I used this to pull out the column names on a metadata mismatch error. I do not use this routine in any production jobs. I use it for debuging purposes. The same is tr...
by kduke
Wed Dec 15, 2004 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: uv, uvsh and dssh commands not working in DS 7.0
Replies: 10
Views: 4837

I would bet that the LD_LIBRARY_PATH needs to point to DataStage first. This path is usually pointing to Oracle first. The order is important. It usually is set in dsenv. LD_LIBRARY_PATH=$DSHOME/java/jre/lib/sparc/client:$DSHOME/java/jre/lib/s parc:`dirname $DSHOME`/branded_odbc/lib:$DSHOME/lib:$DSH...
by kduke
Wed Dec 15, 2004 7:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can we use hash files created in 6.1 in 7.0
Replies: 3
Views: 760

Ray and others have posted the SQL to get the list of hash files. Look for OLETYPE = 'CHashInput' or 'CHashOutput'. The easiest way to create the hahs files is to validate every job. You could script this with dsjob at the UNIX level or do it in BASIC. I do not have this script written but I am sure...
by kduke
Tue Dec 14, 2004 3:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Documentation of the Jobs and Sequences
Replies: 4
Views: 1988

Ray is talking about Reporting Assistant. It does not pick up sequences. I fixed that with DwNav. The JobReport needs some help in in getting all the pices. JobReport and DwNav both generate html documents. I added routines to JobReport and it generates an All_Index html document to link to all the ...
by kduke
Mon Dec 13, 2004 4:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Last Error
Replies: 16
Views: 2092

When you get it working then please post your solution.
by kduke
Mon Dec 13, 2004 4:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Last Error
Replies: 16
Views: 2092

You should just read the '//JOB.STARTED.NO' record and place the value in the SELECT statement. open 'RT_LOG1' to RtLog else call DsLogWarn() end read RtLogRec from RtLog, '//JOB.STARTED.NO' else RtLogRec = 0 end StartNo = RtLogRec<1> Cmd = 'SSELECT RT_LOG':JobNo:' WITH @ID >= ':StartNo:' BY...
by kduke
Mon Dec 13, 2004 4:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How can i change value of job parameter at run time.
Replies: 11
Views: 3947

You really need to start a new topic. This is a whole new question.
by kduke
Mon Dec 13, 2004 2:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Last Error
Replies: 16
Views: 2092

In BASIC there are 2 types of SELECT statements. One is a SQL SELECT. It has to end with a semicolon ";". The other has a syntax which does resemble a SQL statement. It has the form: SELECT MyHashFile WITH field = "VALUE" AND WITH field2 = "VALUE" fieldlist BY field1 BY field2 Th...
by kduke
Mon Dec 13, 2004 8:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get -jobinfo listing for jobs called by a sequence job
Replies: 8
Views: 1647

All the transformation routines just return Ans. Most do not write the results to a file. You would need to add that functionality. If it was me then I would write it to a hash file. I would then run a job and push the results to a table in the data warehouse. If you did this in a shell script then ...
by kduke
Sun Dec 12, 2004 9:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DSLinkInfo and Performance Statistics
Replies: 6
Views: 1841

Sorry but I think there have been several routines posted which will get row counts. These routines are included with DwNav. You can download a copy from my web site and email me for a free 30 day eval copy. Otherwise you need to do a search to get the code to do it in BASIC. RunHandle = DSAttachJob...
by kduke
Sat Dec 11, 2004 1:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to know whether a DS job is referenced by sequencer ?
Replies: 7
Views: 1816

The uv command is the same as sqlplus for Oracle. It is the command line way to interface with the Universe database. It is also called TCL. The Universe database is owned by IBM now. You can downlaod the manuals and even the database itself on their site. Ray posts the links for all these. You can ...
by kduke
Fri Dec 10, 2004 3:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reports for row counts using EtlStats.zip
Replies: 2
Views: 919

Here is oen more. If you have populated ETL_JOB then it may have a bug in the KgdIsJobSequence routine. In the last few lines it sets Ans = ErrMsg. Comment this out. Compile the routine and job and rerun. Here is the SQL for listing how long each sequence ran on its last run. select LAST_RUN.JOB_NAM...
by kduke
Fri Dec 10, 2004 3:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to know whether a DS job is referenced by sequencer ?
Replies: 7
Views: 1816

You can run these commands in Administrator but I prefer to telnet into the DataStage server and run them at TCL. Do a search this has been explained before. All you need to do is run the uv command in the DataStage server bin directory. You will need to be in the project directory. You could also u...
by kduke
Fri Dec 10, 2004 12:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to know whether a DS job is referenced by sequencer ?
Replies: 7
Views: 1816

Another method would be to search for the job name in all other jobs. You would need to modify this SQL. SELECT DS_JOBS.NAME AS JOB_NAME, DS_JOBS.CATEGORY, DS_JOBOBJECTS.NAME AS OBJECT_NAME, DS_JOBOBJECTS.OLETYPE, EVAL DS_JOBOBJECTS."if index(upcase(@RECORD),'KGD',1) > 0 then 'F...