How do I migrate indexed files to a format that is supported by isCOBOL? |
|
Question:
I have indexed files from my legacy application and want to migrate them to either isCOBOL JISAM or isCOBOL ISAM Server (c-tree). What are my options for doing this?
Answer:
There are two basic ways to migrate files to an isCOBOL ISAM file format such as isCOBOL JISAM or isCOBOL ISAM Server (c-tree).
- Use a utility provided with the original ISAM file system to dump all of the records into a binary sequential file, and then use the corresponding utility from the target ISAM file system to load those records into an empty file. This method is known as "Unload/Load".
- Use the isCOBOL ISMIGRATE utility or run a COBOL program that reads records from the original ISAM file and writes them out to the target ISAM file.
First Method - Unload/Load
Here are the instructions for using the unload/load method to migrate a Vision file to isCOBOL JISAM:
- Run a program that creates an empty file in JISAM format. Just set iscobol.file.index=jisam and then OPEN OUTPUT and CLOSE the file.
- Unload the records from the Vision file into a binary sequential file
vutil -unload
- Load the records from the binary sequential file into JISAM file
java JUTIL -load
For example,
- Run a program to create the empty JISAM file:
select jisamfile assign to "jisamfile"
organization indexed
record key jisamfile-key.
fd jisamfile.
01 jisamfile-rec.
03 jisamfile-key pic 9(5).
03 jisamfile-data pic x(100).
set environment "file.index" to "jisam".
open output jisamfile.
close jisamfile.
Run vutil -unload
vutil32 -unload visionfile seqfile
- Run
JUTIL -load
java JUTIL -load jisamfile seqfile
When you run vutil and JUTIL specify the ISAM file name without the extensions added by the file system (e.g. visionfile instead of visionfile.vix).
For further information see the documentation for vutil in the Acucorp docs and for JUTIL in the isCOBOL docs (User Guide : Utilities : JUTIL).
Second Method - ISMIGRATE
The ISMIGRATE utility can migrate files from and to any of the following file systems: isCOBOL JISAM, isCOBOL ISAM Server (c-tree), Acucorp's Vision and others that provide an EXTFH interface.
The steps to run ISMIGRATE to migrate a Vision file to isCOBOL JISAM are as follows:
- Create an ismigrate.properties text file and copy/paste the following in it:
iscobol.ismigrate_input_file_index=vision
iscobol.ismigrate_output_file_index=jisam
You can add other properties as needed such as:
iscobol.vision.f_version=5
- Run
ISMIGRATE
java -Discobol.conf=ismigrate.properties ISMIGRATE visionfile outputdirectory
In order to access Vision you need a valid Acucorp runtime license and a special version of the ACUCOBOL-GT runtime library file that has some isCOBOL specific routines linked into it. Contact your Veryant representative for information on building this relinked library.
On Windows the file is named runcbl.dll and should be placed in a directory listed in the PATH environment variable. It is also required to have the other DLLs from the ACUCOBOL-GT bin directory in the PATH. It is often easiest to place the runcbl.dll file in the ACUCOBOL-GT bin directory itself, and then add that directory to PATH.
On Unix the file is named libruncbl.so and should be placed in a directory listed in the LD_LIBRARY_PATH environment variable (SHLIB_PATH on HP-UX, LIBPATH on AIX). Make sure that the ACUCOBOL-GT license manager, acushare, is running.
Contact your Veryant representative if you need any assistance building runcbl.dll/libruncbl.so or enabling access to Vision.
For further information on ISMIGRATE please review the documentation in the isCOBOL APS User Guide.
Migrating to isCOBOL ISAM Server (c-tree)
If you need to migrate to c-tree, the same instructions apply except for the following:
Unload/load method
- Set iscobol.file.index to ctree
iscobol.file.index=ctree
In the COBOL program that creates the empty file
set environment "file.index" to "ctree".
- Instead of JUTIL, use ctutil as follows:
ctutil _ctload \datadirectory\ctreefile seqfile A
Note: Unless configured otherwise, isCOBOL ISAM Server uses the directory where the server (ctsrvr) was started as the data directory. Paths are relative to that directory. If you get errors running ctutil, then try specifying the c-tree filename using an absolute path, but still without the file extension.
ISMIGRATE method
- Set the iscobol.ismigrate_output_file_index to ctree in the ismigrate.properties file
iscobol.ismigrate_output_file_index=ctree
|
| Authored
by: Veryant Support
This question has been viewed 1704 times so far.
|
| Click
Here to View all the questions in isCOBOL General
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
|
- What Micro Focus library routines are not supported?
- How would I create my own CBL_ALLOC_MEM and CBL_FREE_MEM routines?
- Should I use JISAM or isCOBOL ISAM Server (c-treeACE)?
- What is the best way to control Microsoft Word?
- What ACUCOBOL-GT library routines are not supported or work differently?
- How do I set up isCOBOL to access Vision files?
- How do I resolve "code too large for try statement" errors?
- What is the recommended method for specifying isCOBOL framework properties?
- What are the key technical advantages of isCOBOL?
- How does a program detect at runtime whether it is running standalone GUI, thin client or with Web Direct 2.0?
- How can I package my application and execute it in a JAR file?
- Is there currently a way to debug COBOL and Java source together?
- Do I need to worry about the compile warning "Note: MYPROG.java uses unchecked or unsafe operations?"
- How do I get my screens to be the same size and spacing as when I run with ACUCOBOL?
- How do I resolve a compile error on PIC X(2) USAGE COMP-5?
- How do I specify properties or a properties file on the command line?
- How do I create a desktop shortcut icon to launch my program?
- What compile option should I use for ICOBOL compatibility?
- Does isCOBOL APS support C$XML or other XML interfaces?
- BULK-ADDITION clause on the OPEN statement
- How do I print to a spooler in Unix?
- Is there a way to have single set of source code that will compile with both ACUCOBOL and isCOBOL?
- Why do I get a compile error "--S: Invalid open mode" on an OPEN I-O of an ORGANIZATION LINE SEQUENTIAL file?
- Is the isCOBOL 2009 SP1 release intended to deploy mainframe applications over the cloud? Or is it an integration mechanism for bringing in cloud data and apps?
- Is your runtime library backward compatible?
- How do I prevent hackers from decompiling Java class files to reverse engineer my COBOL application?
- Can Veryant recommend a good Web site to find 3rd party JavaBeans?
- How do I select 11x17 paper size using WIN$PRINTER?
- How do I suppress multiple reserved words with the -rw compiler option?
- Does SET ADDRESS OF X TO Y work?
- How do I get more information when I get java.lang.reflect.InvocationTargetException?
- How do I change the icon in the upper left corner of the Window?
- How do I increase the maximum Java heap size when compiling?
- How do I use conditional compilation?
- What is the easiest and/or best way to convert a legacy text-based user interface to a web front end?
- How do I compile for compatibility with older versions of Java?
- Does isCOBOL run on Linux on System z?
- Can you derive isCOBOL object classes from Java and vice versa?
- How do I set iscobol.file.index.FileName with variable file name assignments?
- Where can I obtain a copy of the ANSI 2002 COBOL standard?
- What is the behavior difference of STOP THREAD?
- Can the file system (iscobol.file.index) be set programmatically?
- Can isCOBOL access a DLL or .so that is in a JAR file?
- How can I read an Excel spreadsheet from COBOL?
- Where can I learn more about Classpath, the Java class loader, JDK tools and utilities?
- How do I turn on debug trace to produce a log file?
- How do I write my own replacement for a C$ library routine?
- I've heard there is a problem passing pointers to C functions. What is it?
- Does isCOBOL work with Flexus COBOL sp2?
- What are the defaults for the DATE-ENTRY control DISPLAY-FORMAT property and format styles?
- What algorithm does isCOBOL use to load framework properties (runtime config variables)?
- How can I make my isCOBOL program to be called instead of a C routine when both have the same name?
- What is the best way to profile an isCOBOL program?
- How can I use the F10 key in my application without it changing the keyboard focus?
- Does isCOBOL APS run on z/OS?
- Is there any equivalent to COPY RESOURCE?
- Can I use directory paths in CALL names?
- How do I compile fixed (ANSI) format source that COPYs terminal format source or vice versa?
- Is there any way to use isCOBOL with SCO 5.0.6 (JDK 1.3)?
- What should I use for USAGE HANDLE items instead of NULL?
- How do I specify which file status codes I want to use?
- How do I configure file locations with environment variables?
- How can I tell what changes were made in the isCOBOL latest update?
- Where can I find more information on A$ENCRYPT and A$DECRYPT?
- Is isCOBOL backward compatible?
- Why do I get the error message "Native call not found" and how do I fix the problem?
- Why do I get the error java.lang.NoClassDefFoundError: com/iscobol/rts_n/StopRunException?
|