Importing Copybooks with Comp-3

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
shawn_ramsey
Participant
Posts: 145
Joined: Fri May 02, 2003 9:59 am
Location: Seattle, Washington. USA

Importing Copybooks with Comp-3

Post by shawn_ramsey »

All,

I am creating a copy book from scratch to load data from files that we are FTPing (binary) from and AS400. The problem that I am having is that for some reason the import copy book fails on lines where I have a structure like:

Code: Select all

              10 PHTOTN                               PIC S9(7)V99 COMP-3.
              10 PHTA01                               PIC S9(7)V99 COMP-3.
              10 PHTA02                               PIC S9(7)V99 COMP-3.
But not on:

Code: Select all

              10 PHTOTN                               PIC S9(7) COMP-3.
              10 PHTA01                               PIC S9(7) COMP-3.
              10 PHTA02                               PIC S9(7) COMP-3.
Any Suggestions?
Shawn Ramsey

"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post by Amos.Rosmarin »

Hi,

Try PIC S9(7)V9(2) COMP-3
There should be no problem, did it many times.

Amos
shawn_ramsey
Participant
Posts: 145
Joined: Fri May 02, 2003 9:59 am
Location: Seattle, Washington. USA

Post by shawn_ramsey »

Thanks but that did not work either. In the end I just imported them without the decimal then edited the metadata.
Shawn Ramsey

"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams
Post Reply