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 > Acucobol-GT > How do I set up isCOBOL to access Vision files?
Question Title How do I set up isCOBOL to access Vision files?

Question:
What do I need to do to access Vision files from isCOBOL?

Answer:

isCOBOL 2023R1 and later
isCOBOL 2023R1 added an interface to the Vision file system called VisionJ. You can create, write, read, and lock Vision files using this interface by setting file index:

   iscobol.file.index=VisionJ
Compression is supported with this file handler, but encrypted files and transaction logging are not.
If you need to access Vision files with encryption or use transaction logging, you should use the vfc (Vision File Connector) described below.

isCOBOL 2022R2 and earlier
In order to access Vision you can build a Vision File Connector (vfc) and set iscobol.file.index to "vfc".

  1. Building the vfc
    This vfc, runcbl.dll (or libruncbl.so on Unix/Linux), is a specially relinked version of Acucorp's wrun32.dll (or libruncbl.a on Unix/Linux). You will need Microsoft Visual Studio standard edition in Windows or a C compiler and linker in Unix/Linux to build your vfc yourself.
    If you want Veryant to create this file for you, you can send us all of the files in your Acucorp lib directory and tell us exactly which version of ACUCOBOL you have installed and the name and version of the operating system.
  2. Setting up your environment
    The vfc depends on other DLLs that are in the AcuGT/bin directory. So make sure that AcuGT/bin is in PATH or that those DLLs are in a directory which is in PATH.
    You need a valid Acucorp runtime license in the PATH as well.
  3. Assigning the vfc to your files
    Once you have the vfc built and your environment set up, add the following line to your isCOBOL properties file to set all file access to the vfc:
       iscobol.file.index=vfc
    
    or this line to set up a single file if only one or some of your files are in the Vision format:
    iscobol.file.index.FileName=vfc
    
    FileName is the physical name of your file, but it must be written in lowercase in the properties file.
    For example, if you have:
       select mylogicalfile assign to "MyPhysicalFile"
    
    then you would set: iscobol.file.index.myphysicalfile=vision Note that: if you have iscobol.file_suffix=DAT you must specify the file extension in all lowercase in the iscobol.file.index.FileName variable. For example:
       iscobol.file_suffix=DAT iscobol.file.index.myphysicalfile.dat=vision
    
Authored by: Veryant Support This question has been viewed 13156 times so far.
Click Here to View all the questions in Acucobol-GT category.
File Attachments File Attachments
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. What ACUCOBOL-GT library routines are supported?
  2. How do I get my screens to be the same size and spacing as when I run with ACUCOBOL?
  3. How do I print to a spooler in Unix?
  4. Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?
  5. Does isCOBOL have a utility to migrate Vision files to MS-SQL and PostgreSQL ?
  6. What compile options should I use for a program written for Acucobol-GT?
  7. What is the easiest way to convert the ACUCOBOL-GT configuration file?
Article Information Additional Information
Article Number: 9
Created: 2009-08-28 12:52 PM
Rating: 5 Stars
 
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.