Converting Mainframe Files with EBCDIC into ASCII

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
horserider
Participant
Posts: 71
Joined: Mon Jul 09, 2007 1:12 pm

Converting Mainframe Files with EBCDIC into ASCII

Post by horserider »

We have DataStage 7.5.2 in production and want to upgrade to version 8.0.

Here is how we handle mainframe flat files in 7.5.2 using 2 jobs where we have to convert any EBCDIC characters into ASCII equivalent.

(1) Job 1 : FTP plugin > TRN>Sequential File (FTP type is binary)
(2) Job 2 : CFF Stage > Any Target

Example:

Job 1 :
If we have a mainframe flat file with 6 columns totalling 130 characeters we simply download the complete row in binary format. We don't define each column in FTP stage in STEP 1. That we way we download the mainframe file ASIS from mainframe to ETL Server in binary format.

Job 2 :
Then in second job we use the sequential file as source and using CFF Stage we import the CFD and apply against the the sequential file that we had FTP'd in Job 1. Target can be anything, another file or table.This process work flawlessly in parallel job and we don't have to do any manual conversion column by column.

Question

(1)
The above is a 2 step process in 7.5.2. Has anyone been able to process mainframe flat files in ONE STEP only in VERSION 8.0?

(2)
Can we even process a mainframe file in just 1 step in VERSION 8.0 and successfully decode all EBCDIC characeters? If yes, please let me know what were the STEPS involved?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No. There is a DB2z stage in version 8.1 (not version 8.0), but it is only for accessing DB2 on the zSeries machine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Aruna Gutti
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 21, 2007 9:35 am
Location: Boston

Post by Aruna Gutti »

I am not sure whether this can be called one step process but I usually process

1) a simple mainframe flat file ( without any comp fields, arrays and redefines by the following steps

ftp ---> transform ----> load

2) a complex file from Mainframe (ftp the file to DataStage server from Mainframe directly) then use

cff ----> transform -----> Load
Aruna Gutti
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 21, 2007 9:35 am
Location: Boston

Post by Aruna Gutti »

I am not sure whether this can be called one step process but I usually process

1) a simple mainframe flat file ( without any comp fields, arrays and redefines by the following steps

ftp ---> transform ----> load

2) a complex file from Mainframe (ftp the file to DataStage server from Mainframe directly) then use

cff ----> transform -----> Load
Post Reply