Question about variable length

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
niamh
Posts: 1
Joined: Mon Aug 09, 2010 10:38 pm

Question about variable length

Post by niamh »

I have a filter set up to extract a customers data that contains a variable described as PIC 9(11)V99, with a length of 13. This works fine. However the customer has now changes their specification to
PIC 9(11)V99-. Broken down to:
9(11) = 11 bytes
v = 0 bytes (implied decimal point)
99 = 2 bytes (decimal places)
- = 1 byte (positive/negative value)

This adds up to 14 bites in length. Textpipe does not seem to recognise the “–“. Could you tell me if there is a problem with the syntax or if there is a way to add this to Textpipe.

Thanks
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Question about variable length

Post by DataMystic Support »

Just change the definition to
PIC S9(11)V99

- that's the standard way of representing a sign in a COBOL copybook.
Post Reply