Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Conversion from EBCDIC to ASCII Post 302365212 by methyl on Monday 26th of October 2009 10:11:19 AM
Old 10-26-2009
You may fare better by doing the conversion on the mainframe. It looks like detail such as accented characters and the record structure has already been lost in the existing process.

We would normally assume that data files are text files suitable for processing in unix shell. Though you do not state what program was run to display the content of the file, it is clearly not a normal text file. I wonder if it is actually a database?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ascii to ebcdic conversion

Hello, I need a program for ascii to ebsdic conversion. If anybody can help, it'll be greatly appreciated. Thanks. (1 Reply)
Discussion started by: er_ashu
1 Replies

2. Solaris

EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix

Hi All, I am facing EBCDIC to ASCII Binary conversion on Solaris i-series Unix system. However this is working fine on Solaris Sparc Unix system. Input file having EBCDIC format does not work on Solaris i-series Unix system. Could you please tell me, what will be the root cause for same? (14 Replies)
Discussion started by: amodkavi
14 Replies

3. Shell Programming and Scripting

EBCDIC Format to ASCII

Hi, we have source file with EBCDIC format(Main Frame files) where we receving from source system. I would like to convert the EBCDIC format file to unix systemformat(ex: .csv,txt ) I have wrote script like: dd if=<SRCPATH>yyy.xxx.RB065 of=<SRCPATH>/output.csv ibs=800 cbs=80... (8 Replies)
Discussion started by: koti_rama
8 Replies

4. UNIX for Advanced & Expert Users

Conversion of data - ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Discussion started by: tostay2003
0 Replies

5. Programming

Ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (19 Replies)
Discussion started by: tostay2003
19 Replies

6. UNIX for Dummies Questions & Answers

EBCDIC TO ASCII Conversion through UNIX Command

Hi All , I have a mainframe file which contains the data in EBCDIC unreadable format.I have downloaded this raw unreadable file from mainframe system to windows in text format then I pushed to Unix system.Now I want to convert this file to ASCII readable format file in unix.Can anyone advise me... (2 Replies)
Discussion started by: STCET22
2 Replies

7. UNIX for Advanced & Expert Users

Conversion from EBCDIC to Ascii OR unicode

I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format? I was searching through web and found only conversion table :( Request Rejected Below is... (16 Replies)
Discussion started by: joshilalit2004
16 Replies

8. Shell Programming and Scripting

Need help for EBCDIC TO ASCII conversion through UNIX

Hi All , We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file in unix box.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic... (7 Replies)
Discussion started by: STCET22
7 Replies

9. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, I have a input file which is EBCIDIC and it has packed decimals. Can anyone help me to convert EBCIDIC file to ASCII(Need to convert even Packed decimal values also to normal format). Thanks swapna (12 Replies)
Discussion started by: swapna_1990
12 Replies

10. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies
db_load(8)						      System Manager's Manual							db_load(8)

NAME
db_load - Loads standard input to a database files (Enhanced Security) SYNOPSIS
/usr/tcb/bin/db_load [-nT] [-c name=value] [-f file] [-h home] [-t btree|hash|recno] db_file FLAGS
Specify configuration options for the DB_INFO structure provided to db_open ignoring any value they may have been based on the input. The command-line format is name=value. The following keywords are supported: The minimum number of keys per page. The byte order for integers in the stored database metadata. The size of pages used for nodes in the tree, in bytes. The value of the DB_DUP flag. The density within the hash table. The size of the hash table. Specify fixed-length records of the specified length. Specify the fixed-length record pad character. The value of the DB_RECNUM flag. The value of the DB_RENUMBER flag. The parenthetical listing specifies how the value part of the name=value pair is interpreted. Items listed as (boolean) expect value to be 1 (set) or 0 (unset). Items listed as (number) convert value to a number. Items listed as (string) use the characters of value directly. Read from the specified input file, instead of from the standard input. Specify a home directory for the database. The correct directory for enhanced security is /var/tcb/files. Do not overwrite existing keys in the database when loading into an already existing database. If a key/data pair cannot be loaded into the database for this reason, a warning message is displayed on the standard error output and the key/data pair are skipped. The -T option allows non-Berkeley DB applications to easily load text files into databases. If the database to be created is of type btree or hash, the input must be paired lines of text, where the first line of the pair is the key item, and the second line of the pair is its corresponding data item. If the database to be created is of type recno, the input must be lines of text, where each line is a new data item for the database. A simple escape mechanism, where newline and backslash () characters are special, is applied to the text input. Newline characters are interpreted as record separators. Backslash characters in the text will be interpreted in one of two ways: If the backslash character pre- cedes another backslash character, the pair will be interpreted as a literal backslash. If the backslash character precedes any other character, the two characters following the backslash will be interpreted as hexadecimal specification of a single character, that is, a is a newline character in the ASCII character set. For this reason, any backslash or newline characters that naturally occur in the text input must be escaped to avoid misinterpretation by db_load. If the -T option is specified, the underlying access method type must be specified using the -t option. Specifies the underlying access method. If no -t option is specified, the database will be loaded into a database of the same type as was dumped, that is, a hash database is created if a hash database was dumped. The btree and hash databases may be converted from one to the other. The recno databases may not be converted to any other database type or from any other database type. DESCRIPTION
A customized version of the Berkeley Database (Berkeley DB) is embedded in the operating system to provide high-performance database sup- port for critical security files. The DB includes full transactional support and database recovery, using write-ahead logging and check- pointing to record changes. The db_load utility reads from the standard input and loads it into the db_file database . The database db_file is created if it does not already exist. The input to db_load must be in the output format specified by the db_dump utility or as specified for the -T option. The db_load utility utility attaches to one or more of the Berkeley DB shared memory regions. In order to avoid region corruption, it should always be given the chance to detach and exit gracefully. To cause db_load to clean up after itself and exit, send it an interrupt signal (SIGINT). The db_load utility can be used to load text files into the security databases. It is used by Tru64 UNIX utilities and is not recommended for use by system administration. The edauth utility provides a supported means of loading records correctly into the security databases. RETURN VALUES
The db_load utility exits 0 on success, and >0 if one or more key/data pairs were not loaded into the database because the key already existed, and with >1 if an error occurs. ENVIRONMENT VARIABLES
If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home. The home directory for security is /var/tcb/files. FILES
/var/tcb/files/auth.db /var/tcb/files/dblogs/* RELATED INFORMATION
Files: authcap(4) Commands: edauth(8), db_dump(8) delim off db_load(8)
All times are GMT -4. The time now is 01:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy