support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Transitioning to isCOBOL > Micro Focus COBOL > How do I convert Micro Focus ORGANIZATION RELATIVE files to isCOBOL format?
Question Title How do I convert Micro Focus ORGANIZATION RELATIVE files to isCOBOL format?

If the relative file's records are fixed-length, you do not need to do anything to them, isCOBOL will read them as-is.

Variable-length relative files must be converted to fixed-length relative files.
Use a Micro Focus program to do this conversion, reading from the variable-length file and writing to a fixed-length file using the maximum record size as the record size of the output file.

Here's why:
In Micro Focus COBOL, the format of an ORGANIZATION RELATIVE file with fixed-length records is the same as that of an ORGANIZATION BINARY SEQUENTIAL file with fixed-length records, except that each record has appended to it a two-byte marker that has the value X"0D0A" if the record exists and X"0D00" if the record has been deleted.
If the file has variable-length records the format is similar except that each record is preceded by a two-byte record size, then padded with low-values to the maximum size, and followed by the two-byte marker.

In isCOBOL, the record storage format for relative files does not include two-byte record-size indicators or record-deleted markers.
Instead, the records are stored consecutively including only the record data. If necessary, each record is padded with low-values to the maximum size.

isCOBOL marks deleted records in the file by replacing the record data with all low-values.
Therefore writing a record containing all low-values from COBOL will cause that record to appear to be deleted.

Authored by: Veryant Support This question has been viewed 7399 times so far.
Click Here to View all the questions in Micro Focus COBOL category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How are Table INDEX values properly initialized in UniKix TPE environment with isCOBOL ?
  2. What compile options should I use for a program written for Micro Focus COBOL?
Article Information Additional Information
Article Number: 101
Created: 2009-09-04 1:41 PM
Rating: 1 Star
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.