Search found 53125 matches

by ray.wurlod
Fri Aug 02, 2013 3:10 pm
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

If you had a premium membership you would have at least two solutions already. I posted complete solutions. The funding model for DataStage - what keeps it alive - is premium membership (notice the lack of advertising?). There are five identified "premium posters" - acknowledged experts wh...
by ray.wurlod
Fri Aug 02, 2013 3:06 pm
Forum: Information Analyzer (formerly ProfileStage)
Topic: "View Test Results" not enabled after job run
Replies: 6
Views: 3518

You should be able to see it enabled once you've tested the DRD.
by ray.wurlod
Fri Aug 02, 2013 5:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to read Mainframe tapes from IIS
Replies: 5
Views: 2849

Tapes can be a little more problematic due to their blocking factor but, if the conditions Arnd referred to are met, then it should be doable, though you might have to create a routine for the preliminary de-blocking.
by ray.wurlod
Fri Aug 02, 2013 5:20 am
Forum: General
Topic: In DataStage 8.5 how to pass parametervalues from text file
Replies: 1
Views: 946

Use a sequence that reads the file, parses the parameter values, and supplies them to the job through a Job activity.
by ray.wurlod
Fri Aug 02, 2013 5:19 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

Learn about membership benefits and get premium membership here.
by ray.wurlod
Fri Aug 02, 2013 2:51 am
Forum: General
Topic: Impact of db2 crash and creation of new instance
Replies: 1
Views: 724

You may need to re-install Information Server. That having been done, you can restore from your backed up jobs.
by ray.wurlod
Fri Aug 02, 2013 2:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: remove zero and a point from nvarchar
Replies: 2
Views: 2038

Trim the leading "0" characters and trim the trailing "." character.
by ray.wurlod
Thu Aug 01, 2013 10:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Access web service through DataStage
Replies: 9
Views: 3256

Try using a freeware client such as SOAPui to see (a) if you can access the web service from your DataStage machine, and (b) what the WSDL looks like.
by ray.wurlod
Thu Aug 01, 2013 10:41 pm
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

Sura's intervention raises the possibility of needing to handle the possibility that "first line is column names" is asserted, in which case an "empty" file will contain one line. The usual technique in a DOS batch file is to count the line terminators. set file=textfile.txt set ...
by ray.wurlod
Thu Aug 01, 2013 10:24 pm
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

chulett wrote:Well, heck, of course - the z modifier! Why didn't I think of that?

:P
Actually I believe the correct terminology is the "z specifier".
by ray.wurlod
Thu Aug 01, 2013 10:23 pm
Forum: General
Topic: Delete statement in Execute command stage
Replies: 7
Views: 1816

1. Set your PATH environment variable correctly, or
2. Specify the full pathname of the sqlcmd command.
by ray.wurlod
Thu Aug 01, 2013 7:31 pm
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

You can, of course, test for the file size in a DOS batch file which you might invoke via the ExecDOS after-job subroutine. You can find the technique more fully documented in DOS help or via an internet search. In essence the technique involves simply using the z modifier for a FOR variable referen...
by ray.wurlod
Thu Aug 01, 2013 6:21 pm
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 16857

Actually it's the STATUS statement, rather than the System() function, that you need here. This statement returns a dynamic array of information about the file whose file handle is provided. The following example code has minimum error handling, for purposes of clarity. SUBROUTINE DeleteIfEmpty(aPat...
by ray.wurlod
Thu Aug 01, 2013 6:08 pm
Forum: IBM QualityStage
Topic: Generate same Key in the matched record
Replies: 4
Views: 3190

You might even countenance using a Survivorship rule to accomplish that, such as "most frequently occurring non-blank".
by ray.wurlod
Wed Jul 31, 2013 11:48 pm
Forum: General
Topic: Access ArcGIS geodatabase file using Datastage
Replies: 2
Views: 848

Both OLEDB and ODBC are possible. Try an internet search for "arcgis database ODBC connection". Then be very selective - most of the hits relate to connecting to databases from ESRI ArcGIS.

Might your requirement be met by a "push" solution?