Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 194761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:37:22+00:00 2026-05-11T16:37:22+00:00

I have a fixed width text file, which has been unpacked from Comp-3 data

  • 0

I have a fixed width text file, which has been unpacked from Comp-3 data into fixed width strings.

I need to know how to interpret the following fields:

FIELD-NAME-1 PIC S9(15)V9(3) COMP-3.
FIELD-NAME-2 PIC S9(3)V9(8) COMP-3.
FIELD-NAME-3 PIC S9(3)V9(6) COMP-3.

These appear in my flat file as:

FIELD-NAME-1 0123456789123456780
FIELD-NAME-2 01234567890
FIELD-NAME-3 012345670

I need to know what numbers the above would represent.

Is this correct:

FIELD-NAME-1 123456789123456.780  --> The first 0 means +ve?
FIELD-NAME-2 012.34567890
FIELD-NAME-3 012.345670

Thanks for the help.
Ham

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:37:22+00:00Added an answer on May 11, 2026 at 4:37 pm

    The S9(15)V9(3) requires 19 nybbles (20 in reality since it must make an even number of nybbles) to store:

    • one for the sign.
    • 15 for the integer bit.
    • 3 for the non-integer bit (V is an implied decimal, not a real one).

    The sign usually appears at the end as a C or a D nybble so the answer to this question depends entirely on what did the unpacking.

    Your first example actually has the right number of digits without the sign so I’d be concerned with your statement that one of them represented the sign. Either that, or you’ve left off the “9”. The other two examples have enough digits for both the sign and numeric part.

    Best bet, see if you can get a negative number (and other test data like 1) into there to see what it generates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer you can just copy and paste the innerhtml. var data… May 11, 2026 at 11:50 pm
  • Editorial Team
    Editorial Team added an answer What you're after a data binding framework for XML. The… May 11, 2026 at 11:50 pm
  • Editorial Team
    Editorial Team added an answer This same question bugged me for a long time until… May 11, 2026 at 11:50 pm

Related Questions

I'm trying to debug a problem with a perl application that calls some c
I'm creating a file-browser in ASP.Net but I have run into a problem which
I have checked 100% I am closing all handles on a file I recently
I was recently put in charge of updating a VB6 data collection app, to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.