Skip to main content

I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs

I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs

try

REBUILD /i your-file

For more options on Rebuild just run REBUILD


I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs

REBUILD /i your-file - this will display the file information AND rebuild the file.

If you just want to see the file information without rebuilding, use REBUILD /n your-file


I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs
If you are looking to get the information programmatically, you can using the fil handler API's

Here is a link to a tutorial on in https://www.microfocus.com/documentation/enterprise-developer/ed60/ED-VS2019/GUID-0F7F7ACE-C840-4A0F-94E8-A41EA3BB2562.html

Here is a pointer to the docs https://www.microfocus.com/documentation/enterprise-developer/ed60/ED-VS2019/BKFHFHEXFHU008.html

Special Opcode 6 will get you file information - it's under OpCode -> Special OpCodes



Have fun



I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs

Great. This helps for my first problem.

Now next one:

I have a Microsoft FoxPro Application. I need to read from an cobol-idx-file in real-time. Is there any interface to Cobol-IDX-FIles to use out side of cobol-runtime?


I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs

I can not use the rebuild. It need to long. I have one file it is about 1,7 GB and just to get the information (/n)  needs about 5 minutes.

It is not interesting for me if the file needs check or rebuild. I just want to have the file informations.

 

 


I want to give File-Information in a cobol-window. But how I can get the information from an index-file?

- Size of the file

- How many data-sentences are in

- How many keys are in

- IndexFormat

- aso

I can also call an existing DOS-Modul and bring this to a seq. File and read this . I need a solution. Urgent!

 

 


#Other
#SupportTips/KnowledgeDocs
#SupportTip
#SupportTips/SupportTips/KnowledgeDocs
This article contains sample code to access the File Handle from a C application. Hope it may give you what you are looking for



Need help for using extfh, Micro Focus callable file handler in C/C++ - Micro Focus Community - 2698215<>