Sponsored Content
Operating Systems Solaris EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix Post 302471213 by achenle on Friday 12th of November 2010 08:48:34 AM
Old 11-12-2010
Also, what exactly is your code doing?

You mention EBCDIC files being generated on SPARC Solaris, which simply wouldn't happen.

It seems more likely you're having problems with simply assuming the endianness of raw values. Are you writing data like binary int or long values directly into your files?
 

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. UNIX for Dummies Questions & Answers

Conversion from EBCDIC to ASCII

when i try to convert a mainframe EBCDIC file to ASCII ,i dont see correct file this is the source file ... (3 Replies)
Discussion started by: venkatvelpula
3 Replies

3. Shell Programming and Scripting

binary to ascii conversion

Hi, I have got a library file, created by compiling C code. The file information with "file" command, gives it a "application/x-archive" type file. I want to extract the release string of my software from this file, so that i can know which version of C files were used to create the lib. Can... (3 Replies)
Discussion started by: atulmt
3 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. 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

6. Shell Programming and Scripting

File conversion from Binary to ASCII though UNIX command

Hi All , I have a mainframe file which contains the data in EBCDIC format.I have downloaded this file from mainframe to windows in binary format(unreadable raw data).Now I want convert this file to ASCII format(readable format data) through Unix command.I have tried iconv but that is not working... (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
img-raw(n)																img-raw(n)

__________________________________________________________________________________________________________________________________________________

NAME
img-raw - Img, Raw Data Format (raw) SYNOPSIS
package require Tk package require img::raw ?1.4? image create photo ?name? ?options? _________________________________________________________________ DESCRIPTION
The package img::raw is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its own, via package require img::raw. Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing raster images in the Raw Data Format (raw). More specifically img::raw extends Tk's photo image type. The name of the new format handler is raw. This handler provides new additional configuration options. See section RAW OPTIONS for more detailed explanations. All of the above means that in a call like image create photo ?name? ?options? [1] Image data in raw format (options -data and -file) is detected automatically. [2] The format name raw is recognized by the option -format. In addition the value for the option is treated as list and may contain any of the special options listed in section RAW OPTIONS. NOTE
This format handler must be loaded explicitly with package require img::raw. SUPPORTED RAW TYPES
Grayscale image: 1 channel of 32-bit floating point values. 1 channel of 16-bit unsigned integer values. 1 channel of 8-bit unsigned integer values. True-color image: 3 channels of 32-bit floating point values. 3 channels of 16-bit unsigned integer values. 3 channels of 8-bit unsigned integer values. List of currently supported features: Type | Read | Write | | -file | -data | -file | -data | ---------------------------------------- Gray | Yes | Yes | Yes | Yes | RGB | Yes | Yes | Yes | Yes | There are 2 supported file formats: One with the pure raw data only, the other with a 7 line ASCII header of the following form: Magic=RAW File format identifier. Fixed value. Width=128 Image width in pixels. Height=128 Image height in pixels. NumChan=1 Possible values: 1 or 3. ByteOrder=Intel Possible values: "Intel" or "Motorola". ScanOrder=TopDown Possible values: "TopDown" or "BottomUp". PixelType=byte Possible values: "float", "short" or "byte". RAW OPTIONS
The handler provides the following options: -verbose bool This option is supported for reading and writing. If set to true, additional information about the loaded/stored image is printed to stdout. Default is false. -useheader bool This option is supported for reading and writing. If set to true, use the file header information for reading and writing. Default is true. -nchan int This option is supported for reading and writing image data without header. Specify the number of channels of the input image. Default is 1. -width int This option is supported for reading image data without header only. Specify the width of the input image. Default is 128. -height int This option is supported for reading image data without header only. Specify the height of the input image. Default is 128. -byteorder string This option is supported for reading image data without header only. Specify the byteorder of the input image data. Possible values: Intel or Motorola. Default is assuming the same byteorder as that of the host computer. -uuencode bool This option is supported for reading image data without header only. If set to false, do not assume, that the image data stored in a Tcl variable is uuencoded. Default is true, i.e. the image data in a Tcl variable is assumed to be uuencoded. -scanorder string This option is supported for reading and writing image data without header. Specify the scanline order of the input image. Possible values: TopDown or BottomUp. Default is assuming the same byteorder as that of the host computer. -pixeltype string This option is supported for reading image data without header only. Specify the type of the pixel values. Possible values: float or short or byte. Default is byte. RAW files are always written in byte pixel format. -gamma float This option is supported for reading only. Specify a gamma correction to be applied when mapping the input data to 8-bit image values. Default is 1.0. -nomap bool This option is supported for reading only. If set to true, no mapping of input values is done. Use this option, if your image already contains RGB values in the range of 0 .. 255. Default is false. -min float This option is supported for reading only. Specify the minimum pixel value to be used for mapping the input data to 8-bit image values. Default is the minimum value found in the image data. -max float This option is supported for reading only. Specify the maximum pixel value to be used for mapping the input data to 8-bit image values. Default is the maximum value found in the image data. SEE ALSO
img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img- tga, img-tiff, img-window, img-xbm, img-xpm KEYWORDS
image handling, raw, tk COPYRIGHT
Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net> Img 1.4 img-raw(n)
All times are GMT -4. The time now is 08:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy