COBOL Picture clause

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
aesguerra
Participant
Posts: 32
Joined: Tue Sep 09, 2003 9:45 pm

COBOL Picture clause

Post by aesguerra »

We are currently working on an extract program wherein part of the input
are fields where the picture clause contains a negative or positive sign
[ex: PIC -9(7)V99]. In traditional COBOL, this is a valid picture clause
for numeric literals.

During the copybook import process in DataStage though, this was not
accepted. We received this error message.
'PIC' picture clause contains unsupported editing character
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

(This isn't really a Parallel Extender question!) Hopefully the site admin will move it to the correct forum, perhaps DataStage.

Surely PIC 9(7)V99 allows for positive or negative numbers. The workaround is simply to edit the copybook so that the - does not appear. And, perhaps, increase the magnitude to PIC 9(8)V99 just in case.

You should report this apparent deficiency to Ascential so that they can correct the import process.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply