Just Learning - COBOL example of real issue

Formally known as "Mercator Inside Integrator 6.7", DataStage TX enables high-volume, complex transactions without the need for additional coding.

Moderators: chulett, rschirm

Post Reply
GoinBuggy
Participant
Posts: 3
Joined: Fri Nov 03, 2006 9:15 am

Just Learning - COBOL example of real issue

Post by GoinBuggy »

Jan,

This is a simpler example of what this file I'm working with is like. I wish I could send the actual file. I hope I am translating this right. Thanks for your help.

Copy Book:
01 TEST2-Record.
03 ITEM1-CNT PIC 9(2).
03 ITEM2-CNT PIC 9(2).
03 ITEM1-SECTION.
05 ITEM1-SECT OCCURS 10 TIMES.
10 ITEM1 PIC X(2).
03 ITEM2-SECTION REDEFINES ITEM1-SECTION.
05 ITEM2-SECT OCCURS 10 TIMES.
10 ITEM2 PIC X(1).
10 ITEM3 PIC 9(1).

Input Data w/<CR><LF>:

0202aabbA1B1 <CR><LF>
0505zzyyxxwwvvA9B8C7D6E5<CR><LF>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

Are you using DataStage TX, or DataStage server or parallel jobs?

I am unfamiliar with TX but in the other scenarios you can import the table definition from the COBOL FD and use a Complex Flat File stage to process it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
GoinBuggy
Participant
Posts: 3
Joined: Fri Nov 03, 2006 9:15 am

Post by GoinBuggy »

TX v8.1
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

I've fixed it.
Post Reply