Page 1 of 1

Question about variable length

Posted: Mon Aug 09, 2010 10:42 pm
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

Re: Question about variable length

Posted: Wed Aug 11, 2010 10:33 am
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.