×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Low Value Hex

Low Value Hex

Low Value Hex

(OP)
Morning,
I have what appears to be a really stupid question...but everytime I ask my sofwtare house I get a random response. Basicially I need to create a file as on a server as follows:-


001123456702 50000.00

The point between the 2 and the 5 are supposed to be low values (I have been told I cant use spaces).....how on earth to I get a flat file to show this.

Any clues would be great

RE: Low Value Hex

Can you provide the record description for this data record, please. Also, what COBOL compiler are you using to produce the data?

Tom Morrison
Hill Country Software

RE: Low Value Hex

Just assign x'00' to that position - assuming that it is PIC X.


Nic

RE: Low Value Hex

How is this file/data to be used?

LOW-VALUES is not a "printable" value. Showiont the data in HEX will allow someone to "see" the x'00'.

RE: Low Value Hex

If the file is a Line Sequential file, by default Micro Focus COBOL (and maybe others) will insert a low-value byte (as an escape code) before any caontrol character in the data (characters < than space). Thus if you accept the default and put a low-value character in the data, you will get two! low-value characters. Upon reading such a file, the low-value (escape) byte will be removed before presenting the data to the application.

RE: Low Value Hex

A couple of possiblities

  1. Write a program
  2. Use a Hex Editor
  3. Use something like the RecordEditor. You will need to setup the file definition. For the Hex-Zero field, define as a binary integer and set it to 0.
  4. On the mainframe, use standard SPF editor and put hex mode

RE: Low Value Hex

I think the OP has left the building.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close