How to create, write, and read to files without a program |
Question:
Does isCOBOL provide a method to create an indexed file with a given structure and name, read a file by key and return the record value, and write records into a file?
Answer:
Yes, by using jutil, ctutil, and Gife utilities
-
To create indexed files with a given structure and name.
-
If you are using the JISAM file handler, use the jutil utility to create a new empty file by passing an image string (-jutil -makeimage), or by interacting with the utility to provide the image information (jutil -gen)
You can also extract records from an indexed file to a text file, and load them to the new file using jutil -unload, unloadtext, -load and -loadtext
-
If you are using c-treeRTG, use the ctutil utility. This utility has the same features of jutil, but works on the ctree file system.
-
To read a file by key and review, edit or write records.
Use the GIFE utility. This utility will open an indexed or relative file using any file handler.
You can view and edit the data in raw format (each record as one string), or as values of the file description if you have an extended file description (created with the -efd compile switch).
-
Read, edit and write records without knowing the data fields.
isCOBOL also provides the I$IO library routine to give low-level access to indexed files without the need of an FD or Select.
For more information about how to use this, please read the section on I$IO in our Appendices documentation.
You can also see I$IO used in a sample program called "IIO.cbl" in our sample directory, under the "issamples" section.
|
Authored
by: Veryant Support
This question has been viewed 381 times so far.
|
Click
Here to View all the questions in Data Access
category. |
File Attachments |
There are no attachment file(s) related to this question. |
|
User Comments |
 |
|
There are no user comments for this question. Be the first to post a comment. Click Here |
Related Questions
|
- File Types Comparison : isCOBOL - Micro Focus COBOL - ACUCOBOL-GT - RM/COBOL
- How do I interpret file status 9? and other EXFS extended file status codes (e.g. 9i,105)?
- What format does isCOBOL use for ORGANIZATION RELATIVE files?
- What is 9l,10 error and why is it happening?
- Does isCOBOL support Data General file status codes?
- Can I install the UDBC 32 bit on my 64 bit computer in order to have the Veryant * driver for ODBC32 bits Administrator?
- Can I call a stored procedure from an isCobol program?
- Why do I get the error message “java.lang.ClassNotFoundException: ctree2" ?
- Are Veryant's isCOBOL JISAM data format the same as Faircom's c-treeRTG?
- Why do I get 'ct_init ERROR 19:133:0' ?
- Did you know you can use an alias to map a different disk file name to an existing "assign to" clause of the select statement without source code changes?
- Did you know you can encrypt an indexed file?
- Handling the extension on indexed data files
- How to hide the user and password used to connect to an RDBMS
- Can we use Micro Focus format data and indexed files directly or do they need some form of conversion?
- How to access files on a different server
|