INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

BACKSPACE and segmented records (ifort)

BACKSPACE and segmented records (ifort)

(OP)
Hi guys,

I am having an issue with backspacing large segmented records.

Basically I have a code that reads very large records sequentially, but needs to step back to previous records various times during a run. I adapted the code to save the files in segmented file type as my records were getting too large to remain single variable length.

In order to step back over records the code used to rewind to the beginning and loop through doing READ to get to the necessary record, but this proved to be a bottleneck. So instead I have implemented a BACKSPACE functionality to get to the desired record more quickly. This works perfectly on records that are non-segmented, but doesn't work correctly for segmented records.

Is this a well-known fact that BACKSPACE is incompatible with segmented records or is there some kind of workaround? I wonder if the structure of segmented records means BACKSPACE needs to be handled differently?

Cheers,
Dan

RE: BACKSPACE and segmented records (ifort)

Segmented records are IVF specific. I know of them but I have never used them because they are not portable. Why not just implement as direct-access fixed length records. Then you can use backspace or go directly to the record you wish to read again.

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!

Resources

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