Search found 9 matches

by at095nb
Fri Aug 01, 2008 11:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Writting into Mainframe GDG
Replies: 11
Views: 4140

Re: Writting into Mainframe GDG

Sorry, I was sloppy.
RECFM means RECord ForMat. In your case it's Variable Block.
by at095nb
Fri Aug 01, 2008 11:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Writting into Mainframe GDG
Replies: 11
Views: 4140

Re: Writting into Mainframe GDG

RECFM means [u]REC[/u]ord [u]F[/u]or[u]M[/u]at. In this case it's [u]V[/u]ariable [u]B[/u]lock. LRECL means record lenght. In this case it's = 256 bites GDG means Generation Data Group - a collection of historical related data sets that are arranged in chronological order. The name HLQ.ABCS.EFG(0) m...
by at095nb
Fri Oct 14, 2005 2:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to reject invalid records from a sequential file
Replies: 5
Views: 2465

[quote="chivl627"]Hi, Thanks! I tried your suggestion Ken, and it's working. at095nb, how do I define InputRec?[/quote] In transformer define it as one string, VarChar(nnn). Put a constraints Count(InputRec,"|")=n for 'pass' link, where n-expected numbers of pipe; Count(InputRec,...
by at095nb
Fri Oct 14, 2005 12:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to reject invalid records from a sequential file
Replies: 5
Views: 2465

You may use Count() function to define a constraints.
Count(InputRec,"|") will give you a number of pipe characters in InputRec. If it's less or greater then you expect, output the record to reject file.
by at095nb
Fri Oct 14, 2005 11:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Counting number of columns in a CSV file
Replies: 8
Views: 10030

[quote="at095nb"]I did count the number of columns but in | delimited file using Count() function. You may count how many commas you have in your entire record. If it's more then you expected, count how many quotes you have. For any additional comma you need 2 quotes.[/quote] I will try to...
by at095nb
Thu Oct 13, 2005 5:50 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Counting number of columns in a CSV file
Replies: 8
Views: 10030

I did count the number of columns but in | delimited file using Count() function.
You may count how many commas you have in your entire record.
If it's more then you expected, count how many quotes you have.
For any additional comma you need 2 quotes.
by at095nb
Wed Oct 12, 2005 9:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
Replies: 18
Views: 7487

Pay attention. You are trying to load date formatted as DD MM YYYY HH:MM ( "Attendance_Date = 12 04 1998 12:00 ) with description of 'YYYY-MM-DD HH24:MI:SS' Of course it's not working. You need to change one end (DS transformation) or another (Oracle SQL) whatever you are more comfortable with ...
by at095nb
Fri Sep 30, 2005 7:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Packed Integer for Sequential File
Replies: 3
Views: 2037

That was exactly what I was doing in the first place. But the result looks like this
7B8B9472
7FFF234B
7FFFC373
7FFFE69B

It's not actual pack integer. It's a text representation of it.
by at095nb
Thu Sep 29, 2005 5:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Packed Integer for Sequential File
Replies: 3
Views: 2037

Packed Integer for Sequential File

My task is to extract data from DB (defined as Decimal (16,0)) and create a sequential file for mainframe. My target format is packed integer. I understand I need to do a conversion first. But how do I define packed integer in the file?