Editing EBCDIC Files with VEDIT
Greenview Data, Inc.

Download
   Trial Version
   Products - vedit.com
      
EBCDIC Info
   Overview
   EBCDIC Packages
   Consulting
   Tape Conversion
   FAQ
   Contact Us
      
VEDIT Info
    go to VEDIT.com

      
Sales
     Order (Secure)


      

Overview of EBCDIC editing

Note:  Since this overview and even the more detailed "EBCDIC" page probably won't answer all of your questions, we really encourage you to contact us with your specific needs. Or, we will be happy to call you. We work with EBCDIC files every day and know that they are very "strange" (to say the least) to most Windows, DOS and UNIX users.

VEDIT lets you handle EBCDIC files in two ways:

  • You can edit the EBCDIC file directly without translating it. This is best when the EBCDIC file will be transferred back to a mainframe computer. This avoids problems associated with translating from EBCDIC to ASCII and back to EBCDIC again. (There isn't a one-to-one correspondence of all characters.)
  • You can translate the EBCDIC file to ASCII. This is best when the EBCDIC file is being transferred to a PC or UNIX, e.g. to a database such as SQL or MS Access. You can also translate from ASCII to EBCDIC.

Our EBCDIC conversion packages can translate EBCDIC files with packed, zoned, binary and other special fields into ASCII; this is briefly described below and in more detail on our "EBCDIC" page.


Edit an EBCDIC file

>>> To edit an EBCDIC file directly:

  1. Open the EBCDIC file as a normal file. The file will initially display as gibberish.
  2. If the file does not contain ASCII newline character(s), you may need to view it with a uniform 64 or 80 characters per line. In this case, select {CONFIG, File handling, File type} and enter "64", "80" or other desired value.

    If the file contains fixed length records, enter the record length here.
  3. Press <Alt-D> the hot-key for {VIEW, Toggle display mode} nine (9) times to enter EBCDIC mode. The status line will display "EBCDIC".

    You should now be able to read the EBCDIC file on the screen. You can enter new text directly from the keyboard. You can even search for text and work with the file just as if you were sitting at a mainframe editor.
  4. To optionally edit the file in EBCDIC and hexadecimal, select {VIEW, Toggle hex-mode split}. You may need to click the mouse in the right (ASCII) window and press <Alt-D> several times to switch the window into EBCDIC mode.

Convert a simple EBCDIC text file

EBCDIC files that do not contain packed-decimal fields are easily translated to ASCII by the standard VEDIT PLUS package. Even 100+ megabyte sized files are quickly converted. (About 60 megabytes/minute on a Pentium 800mhz computer.)

>>> To translate an EBCDIC file (without packed fields) into ASCII:

  1. Open the EBCDIC file in the normal manner, e.g. with {FILE, Open file}.
  2. Select {BLOCK, Select all} to mark the entire file as a block.
  3. Select {BLOCK, Edit/Translate, Translate from EBCDIC} to translate the file to ASCII.

    If the original EBCDIC file consisted of fixed-length records without end-of-record characters, you may want to add an ASCII "newline" (Carriage-Return and Line-Feed) to the end of each record so that Windows/DOS programs can more easily read it.
  4. Select {CONFIG, File handling, File type} and set the correct record length. Records should now be nicely aligned on the screen.
  5. Select {BLOCK, Convert newlines, Convert macro}. In the macro's menu, select "Fixed length records to Newlines".
  6. Select {FILE, Close buffer} or {FILE, Exit} to save the translated file.

Similarly, an ASCII file can be translated to EBCDIC with {BLOCK, Edit/Translate, Translate to EBCDIC}.

IMPORTANT:    Since IBM PC ASCII and EBCDIC have somewhat different character sets, not all characters will translate without problems. In particular, there is no equivalent of most IBM PC graphics characters. Therefore, if you translate a file to EBCDIC and then back again to ASCII, you may not have the same file again. Some punctuation and most control and graphics characters will have changed. In this case, you may prefer to edit the file in EBCDIC without translating it.

The EBCDIC translation table is built into VEDIT. However, for custom needs you can modify the EBCDIC.TBL file and then load the revised EBCDIC translation table into VEDIT. This supports various International code-pages for both ASCII and EBCDIC.


Automate the Translation

VEDIT easily lets you automate the translation via a Windows icon, a command line or batch file. For example, the following command (e.g. in a batch file) performs a simple EBCDIC to ASCII translation without any user intervention and without even showing VEDIT on the screen.

vpw -q -e -c"Translate_Block(0,File_Size,REVERSE) Xall" %1

where %1 is the name of the file to be converted. To save the converted file under a new name use:

vpw -q -e -c"Translate_Block(0,File_Size,REVERSE) Xall" %1 -a %2

where %2 is the new name.


EBCDIC (Data) Conversion Packages

Our EBCDIC conversion packages can translate almost any EBCDIC (COBOL) file with packed (signed), binary, zoned or other special fields. Several packages are available, depending upon the complexity of your EBCDIC files. They range in price from $550 to $950 and include VEDIT PLUS Deluxe. The top level package can:

  • Translate an EBCDIC file with any number of packed (signed) decimal, binary or zoned fields. Huge 100+ megabyte files can be translated.
  • Translate an EBCDIC file which contains different types of records, with each record type having different field specifications.
  • The translation is controlled by an easy-to-create data layout file which specifies the packed field locations. You can cut & paste the COBOL "copybook" into the data layout file.
  • The entire translation process can be automated via a Windows icon, a command line or batch file.
  • ASCII files can be translated back to EBCDIC with packed fields.

For more information on VEDIT's EBCDIC editing:

  • Refer to the detailed "EBCDIC" page which describes EBCDIC packed fields and our translation packages in more detail:
  • Select "Data/Binary file editing" from the {HELP, Tutorial} menu.
  • Press <F1> for on-line help and select the topic "Translating a Block or File".
  • The on-line help topic "File Types - DOS/Windows, UNIX, Mac, Data/Binary" also contains related information.

If you have any questions about EBCDIC editing or translation, please don't hesitate to contact us. We provide very personal and fast service.

We are happy to look at a sample EBCDIC file you send and determine exactly what software is needed to convert it. Please include or fax any file layout/specification that you might have. Just "zip" up your file(s) and email it to support@vedit.com.

Or we would be happy to call you:   Call me now

Please contact us with any sales or technical questions at:

Mail: Greenview Data, Inc. PO Box 1586, Ann Arbor, MI 48103 USA
Telephone (Sales): In US and Canada call Toll-Free 1-800-458-3348
Telephone: Otherwise, please call (734) 996-1300
Fax: (734) 996-1308
E-mail: sales@vedit.com or support@vedit.com

Download
| Trial Version | Products |
Information
| VEDIT Info | Testimonials | FAQContact |
Sales
| General Info | International Dealers | Order (Secure) |
Support
Home