We did this in a job and wrote the results to a hash file which you can read with UtilityHashRead. You could do the same with
cmd = 'select max(column) from MyHashFile'
execute cmd capturing output
You would need to parse output. The result is probably in output<2>.
Search found 4605 matches
- Fri Aug 27, 2004 3:11 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Hash Key Max Value
- Replies: 2
- Views: 979
- Fri Aug 27, 2004 3:08 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Hash Key Max Value
- Replies: 2
- Views: 979
We did this as a way to shorten our select on rebuilding our hash file to calculate whether or not our record is a new record or an update. You need to use a UV stage. This way you can use SQL. So we SELECT #ColumnName# FROM #HashFileName# And write the results to something like SDKsequences. This w...
- Fri Aug 27, 2004 3:01 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: ETL date range between join
- Replies: 3
- Views: 1384
Sure why not. I think a lot of people have these issues and maybe they have a better solution. I think what we did is kind of cool. Anyway here is what we did. We had a day dimension table. You could easily create one. You can join both sides to this table and create a record for each month. That wa...
- Fri Aug 27, 2004 11:46 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: ETL date range between join
- Replies: 3
- Views: 1384
ETL date range between join
Currently we have employees assigned to a team to service a customer. There is also another team of 3 assigned to manage their planning, buying and general questions. This second team gets a bonus based on their role. Example: BuyRep 50% for 2003 PlanRep 25% GenRep 25% Lets say our customer is Ford ...
- Fri Aug 27, 2004 9:17 am
- Forum: Enhancement Wish List
- Topic: Change Analysis facility
- Replies: 3
- Views: 2211
- Fri Aug 27, 2004 9:15 am
- Forum: Enhancement Wish List
- Topic: Sequences included in Reporting Assistant
- Replies: 1
- Views: 1525
Charley I have added sequences to the tables in Reporting Assistant. It works through DwNav. I noticed there is a bug in it in version 7. I am not exactly sure yet on what is going wrong. I thought about posting some of this code. The only thing I extract are the depend jobs. I think the only other ...
- Fri Aug 27, 2004 5:20 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: List DataStage metadata DS_METADATA
- Replies: 7
- Views: 1462
- Thu Aug 26, 2004 9:59 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: List DataStage metadata DS_METADATA
- Replies: 7
- Views: 1462
- Thu Aug 26, 2004 8:55 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sequence Job - retrieving Logs
- Replies: 24
- Views: 9196
- Thu Aug 26, 2004 7:10 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sequence Job - retrieving Logs
- Replies: 24
- Views: 9196
There are multiple record types in the dictionary. Field 1 tells the type. If there is a PH there then it is a phrase. It is just as if you added everything on line 2 to your command. This is a special phrase required by an association. An association is how you define a nested table. A nested table...
- Thu Aug 26, 2004 6:30 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: List DataStage metadata DS_METADATA
- Replies: 7
- Views: 1462
- Thu Aug 26, 2004 4:01 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: List DataStage metadata DS_METADATA
- Replies: 7
- Views: 1462
List DataStage metadata DS_METADATA
DataStage stores its metadata in a hash file named DS_METADATA. They give you very few dictionary items to list the contents of this file. Here is a way to add more dictionary items to use in SQL statements or LIST or SORT commands. INSERT INTO DICT DS_METADATA (FIELD, CODE, EXP, NAME, FORMAT, S...
- Thu Aug 26, 2004 3:55 pm
- Forum: General
- Topic: KeyMgmt Function
- Replies: 21
- Views: 10200
Ray has explained this before but when you SELECT * then it uses the @ phrase or the @SELECT phrase to get a default list of fields. LIST.DICT HashFileName Will describe all the fields available to use in a SQL SELECT statement or a Universe LIST or SORT statement. If you do a search on @SELECT then...
- Thu Aug 26, 2004 5:07 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sequence Job - retrieving Logs
- Replies: 24
- Views: 9196
- Wed Aug 25, 2004 8:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sequence Job - retrieving Logs
- Replies: 24
- Views: 9196
The dictionary items need to be in DS_JOBS to get the list based on job name. The job name is the key to DS_JOBS. Field 5 is job number. The key to DS_JOBOBJECTS where the depend jobs are stored is "J\xxx\ROOT" where xxx is the job number. Now you have a complete solution. Ray how do you use a WHEN ...