Search found 38 matches

by landaghaar
Tue Oct 02, 2007 2:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Using Table Definition of mainframe in Seq files
Replies: 5
Views: 2638

I am reading from a mainframe file using a CFF stage. then i write the fields to a flat file. then i read the flat file for other purposes. The problem is when i open that flat file with the same table definition as the mainframe, i have hard time reading integers, i have to read them as string then...
by landaghaar
Tue Oct 02, 2007 1:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Using Table Definition of mainframe in Seq files
Replies: 5
Views: 2638

Using Table Definition of mainframe in Seq files

I am reading from a mainframe file and write it to a sequencial file. it is a one to one mapping without any transformation. I have the copy book for mainframe file, when i use the same table definition for the target file i run into problems for number fields. the question is, is there a way to mak...
by landaghaar
Fri Sep 21, 2007 8:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: creating sequential file in dos mode
Replies: 2
Views: 2956

creating sequential file in dos mode

When I create files in DataStage, and opening them with notepad, all are in one line, they are in unix format.

is there a way to write in dos format? with carriage return and line feed characters?

it can be done in server but not in parallel. or at least i couldnt find the option.
by landaghaar
Fri Sep 21, 2007 8:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Hiding userid and password in ftp script
Replies: 2
Views: 914

Well you could create environment variables for userid and passwords in your .profile or create a .ftp file like this: export USERID='the user id you want to use' export PASSWD='your ftp password' then in your ftp script just call this script by . /full/path/to/.ftp ftp -v -n abc.syscon.com user $US...
by landaghaar
Thu Sep 20, 2007 7:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading EBCDIC file and Flattening it.
Replies: 5
Views: 2532

rajeevn, I fixed the problem the hard way :) I agree about big-endian, i have done it already, when i view it from datastage it shows properly but when i open it in a text editor i get junk. my workaround was inside the transformer. I read as smallInt then my target file field is Varchar instead of ...
by landaghaar
Thu Sep 20, 2007 6:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading EBCDIC file and Flattening it.
Replies: 5
Views: 2532

Well, the file is in EBCDIC format, but some columns are in COMP as mentioned above. when I open the definition they are stored as binary. but I read the file as EBCDIC, go to a transformer one to one then write them to a flat file. the definition of the flat file is not cobol format. here is the de...
by landaghaar
Wed Sep 19, 2007 1:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading EBCDIC file and Flattening it.
Replies: 5
Views: 2532

Well, I found the problem in NULL values in the ebcdic file. i got rid of those problematic columns and it works for now. although it is not a good idea, but i can view my data. now i have another problem. I have this basic job to read from mainframe and convert it to ascii sequencial file, now when...
by landaghaar
Wed Sep 19, 2007 11:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading EBCDIC file and Flattening it.
Replies: 5
Views: 2532

Reading EBCDIC file and Flattening it.

Hi, I have a complex cobol file in ebcdic format. i have trouble reading the COMP fields. Here is the copybook ETI generated: 01 DCLFRGN-EXCHNG. 05 RECORD-ID PIC X(4). 05 PRTITION-NO PIC S9(4) COMP. 05 SESS-DT PIC S9(9) COMP. 05 SESS-TR PIC S9(9) COMP. 05 SESS-TM PIC S9(9) COMP. 05 TXN-SESS-ID PIC S...