Question about variable length

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Question about variable length

Postby niamh » Mon Aug 09, 2010 10:42 pm

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Question about variable length

Postby DataMystic Support » Wed Aug 11, 2010 10:33 am

Just change the definition to
PIC S9(11)V99

- that's the standard way of representing a sign in a COBOL copybook.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests