Search found 7201 matches

by admin
Thu Sep 19, 2002 6:49 am
Forum: Archive of DataStage Users@Oliver.com
Topic: Breaking up SQL Statements
Replies: 7
Views: 749

Is there a way you could employ the use of surrogate keys to the rows in the table, or even add row numbers? That way you could specify where the next select can start. Just a thought. -----Original Message----- From: Mark Steen [mailto:mark.steen@damanconsulting.com] Sent: 19 September 2002 05:52 T...
by admin
Thu Sep 19, 2002 3:52 am
Forum: Archive of DataStage Users@Oliver.com
Topic: Breaking up SQL Statements
Replies: 7
Views: 749

obviously, but the point is that the columns are not numeric and Im having a difficult time how to identify a simple scheme that can be parameterized. the data looks like 002938 Z342356 123847 13451345 and the fields are defined as a char(6) and a char(9) 2 indexes - on on both fields and one on the...
by admin
Thu Sep 19, 2002 12:37 am
Forum: Archive of DataStage Users@Oliver.com
Topic: Outputting Sequential Files
Replies: 0
Views: 456

Outputting Sequential Files

Hi, You can split a file based on a key using the XML stage. For a full explanation of this search m looking for "Splitting files based on a key field" You can then just set up a couple of stage variables. One hold the filename "key" and the second to increment for each input row and reset at 1000 a...
by admin
Wed Sep 18, 2002 9:31 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Breaking up SQL Statements
Replies: 7
Views: 749

Just use job parameters in the WHERE clause: WHERE keyfield BETWEEN #StartValue# AND #EndValue# If keyfield is not numeric (which "concatenation" suggests), simply quote them: WHERE keyfield BETWEEN #StartValue# AND #EndValue# -----Original Message----- From: Mark Steen [mailto:mark.steen@damanconsu...
by admin
Wed Sep 18, 2002 8:51 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Outputting Sequential Files
Replies: 5
Views: 753

Create one job A to do what you want with n lines of the file where n is the number of rows you want to process at a time. This job will add a header, process n lines and then write a trailer. Add a a constraint to only process rows m to m + n - 1 where m is a multiple of n where the multiple will b...
by admin
Wed Sep 18, 2002 3:03 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Breaking up SQL Statements
Replies: 7
Views: 749

Breaking up SQL Statements

I want to split a large job into pieces to run in parallel. My source is a DB2 database The key is a concatenation of 2 character fields (mostly, but not all numeric values) My problem: how to write a simple generic where clause to return a subset of the values thats can be repeated. if the data wer...
by admin
Wed Sep 18, 2002 2:44 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Outputting Sequential Files
Replies: 5
Views: 753

Hi Jeremy, it is no easy problem you have. In my mind I get two approaches how I would solve the problem. Way 1: I would code it in Jobpropeties under code. Openseq and Writeseq and a counter, perhaps 10 lines code at all. If you dont know how to, let me know and I give you the details. Way 2: With ...
by admin
Wed Sep 18, 2002 2:21 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Outputting Sequential Files
Replies: 5
Views: 753

Outputting Sequential Files

I have a requirement to generate files containing details of transactions. Each of these files should contain no more than 1000 records with a header and trailer record. The number of files created will depend on the number of transactions. For example if there are 2500 transactions there will be tw...
by admin
Wed Sep 18, 2002 11:07 am
Forum: Archive of DataStage Users@Oliver.com
Topic: DSCmdExport and DSCmdImport /O switch
Replies: 2
Views: 991

The /O flag is the equivalent of the "Omit" checkbox on the client Attach dialog that you see when you login to DataStage. You can either specify "/U=username /P=password", or "/O=1". The former case connects via TCP/IP; the latter case means connection is made via LAN Manager so your current Window...
by admin
Wed Sep 18, 2002 7:27 am
Forum: Archive of DataStage Users@Oliver.com
Topic: DSCmdExport and DSCmdImport /O switch
Replies: 2
Views: 991

DSCmdExport and DSCmdImport /O switch

This is a topic for an orphaned message.
by admin
Wed Sep 18, 2002 7:27 am
Forum: Archive of DataStage Users@Oliver.com
Topic: DSCmdExport and DSCmdImport /O switch
Replies: 2
Views: 991

Good question, Wolfgang. All I did was capture the output from the command. I do seem to recall, however, that /O does mean "omit read-only items", corresponding with the check box in the Manager clients Export dialog. I guess it calls for someone to perform a test. Something for ones "copious free ...
by admin
Wed Sep 18, 2002 7:21 am
Forum: Archive of DataStage Users@Oliver.com
Topic: DSCmdExport and DSCmdImport
Replies: 1
Views: 3306

Hi Ray, Does the [/O]-flag in import and export not mean overwrite? Export: overwrite if *.dsx-file already exists Import: overwrite if the object (Job, Routine, Tabledef....) already exists Wolfgang > -----Original Message----- > From: Wurlod, Ray (BSG) [mailto:Ray.Wurlod@riotinto.com] > Sent: Wedn...
by admin
Wed Sep 18, 2002 3:59 am
Forum: Archive of DataStage Users@Oliver.com
Topic: DSCmdExport and DSCmdImport
Replies: 1
Views: 3306

DSCmdExport and DSCmdImport

As with many DataStage executables, entering the command name alone will invoke a usage summary. usage: dscmdexport [/H][/U][/P][/O] project filepath [/V] /H Host name. /U User name. /P Password. /O Omit flag project Specifies the project name. filepath Specifies the export file name. /V Verbose. De...
by admin
Wed Sep 18, 2002 3:44 am
Forum: Archive of DataStage Users@Oliver.com
Topic: Importing .dsx files
Replies: 3
Views: 1016

Hi, Importing and Exporting files is a client task, so you cant run it from the server. However, for those running on Windows, you have the luxury of installing the client on the server. You can run DSImport.exe and DSExport.exe from the command line but these have the unfortunate habit of pooping u...
by admin
Tue Sep 17, 2002 1:08 pm
Forum: Archive of DataStage Users@Oliver.com
Topic: Importing .dsx files
Replies: 3
Views: 1016

depends on the reason. the short answer is yes, the longer answer depends on what you want to do with the .dsx im guessing its for backup... there should be a dsexport utility in the datastage directory somewhere. --mark At 11:02 AM 9/17/2002 +0100, you wrote: >I have been asked by our support peopl...