Company InformationOur COBOL SolutionsCOBOL Services and TrainingSupport for our CustomersAcucorp and COBOL EventsAcucorp's Partners


















< previous      next > Print this page  

Moving files to VMS from UNIX

This document is used to help in converting UNIX Vision Indexed Files into VMS RMS Indexed Files or moving binary sequential files from UNIX to VMS (steps 3 through 6).

There are several files mentioned in this document. Here is a description of each filename specified in the examples:

idx.unx Vision indexed file
bin.unx Unix binary sequential file
bin.fdl File Definition Language for binary sequential file
bin.vms Converted binary sequential file
idx.emp Empty RMS indexed file
idx.fdl File Definition Language for RMS indexed file
idx.vms Converted RMS indexed file

UNIX

  • Step 1: Get the record length

    Use VUTIL on the Vision indexed file to determine the maximum record length and make note of it for step 5.
      vutil -info <idx.unx>
  • Step 2: Create a binary sequential file

    Use VUTIL to create a binary sequential file from the Vision indexed file:
      vutil -unload <idx.unx> <bin.unx>
  • Step 3: Move the binary sequential file to VMS

    Use FTP in binary mode or VIO with the "p" option to move the binary sequential file from Unix to VMS.

VMS

  • Step 4: Get the description of the record format and attributes

    Under VMS do a "DIRECTORY/FULL" on the binary sequential file. If you used FTP the record description should be:
    Record format:        Fixed length 512 byte records
    Record attributes:    None
    If you used VIO the record description should be:
    Record format:        Stream_LF
    Record attributes:    Carriage return carriage control
  • Step 5: Create the FDL file for the binary sequential file

    Use the editor to create an FDL:
      edi/fdl <bin.fdl>
    A menu will appear with some options. Use the "Add" option to add the following file and record definitions:
      FILE
              ORGANIZATION         sequential
      RECORD
              BLOCK_SPAN           yes
              CARRIAGE_CONTROL     none
              FORMAT               undefined
              SIZE                 <record-size>
    NOTE: If you used FTP then <record-size> should be set to the maximum record length that was noted from the VUTIL command in step 1. If you used VIO then the <record-size> should be set to 0.
  • Step 6: Convert the binary sequential file into VMS format

    Use the CONVERT command to change the binary sequential file into the VMS format described by the FDL for the binary sequential file:
      convert/fdl=<bin.fdl> <bin.unx> <bin.vms>
  • Step 7: Create an empty indexed file

    Create an empty indexed file with a COBOL program
      runcbl <program>
    We will call the empty indexed file created from this program <idx.emp>.
  • Step 8: Create the FDL file for the indexed file

    Use the ANALYZE command to create an FDL file from the empty indexed file:
      analyze/rms/fdl <idx.emp>
    We will call the FDL file created from this command <idx.fdl>.
  • Step 9: Convert the VMS binary sequential file into an RMS indexed file

    Use the CONVERT command again to change the VMS binary sequential file into the VMS format described by the FDL for the empty indexed file:
      convert/fdl=<idx.fdl> <bin.vms> <idx.vms>

####

Acucorp, extend and ACUCOBOL are trademarks or registered trademarks of Acucorp, Inc. All rights reserved. All other trademarks are the property of their respective owners.

 

 

Contact | Site Map | | Legal | Trademarks | Privacy | Print this page
Acucorp, Inc., 9920 Pacific Heights Blvd., San Diego, CA 92121, +1 858.795.1900
© 1999-2008, Acucorp, Inc. All rights reserved.


Get the most recent Code Updates
Download an Evaluation of ACUCOBOL- GT
View recorded Webinars and demos
Download the latest version of Acucorp News
Find out about the latest Training Opportunities
Language