Sponsored Content
Top Forums Shell Programming and Scripting how to convert data from ASCII to Packed Decimal Post 302316482 by aloktiwary on Friday 15th of May 2009 08:28:06 AM
Old 05-15-2009
how to convert data from ASCII to Packed Decimal

Hi All,
Please let me know if it is possible to convert data from ASCII to Packed Decimal through Unix?

Basically we have ASCII file with numeric data we want to convert that files data to Packed decimal format to send it to main frame.
Please let me know if we can do it through unix script.

Thanks in advance.

Regards,

Alok
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Convert "text" to "packed-decimal"?

Is there a way with HP-UX Release 10.20 (but going to HP-UX 11) to convert a regular "text" file to a packed data format (such as is created by a Cobol program)? (2 Replies)
Discussion started by: HuskyJim
2 Replies

2. UNIX for Dummies Questions & Answers

Packed Decimal

How do we create a text file with COBOL "Packed Decimal" value in UNIX ? (1 Reply)
Discussion started by: gaddeg
1 Replies

3. UNIX for Advanced & Expert Users

Convert Binary data to ascii data

Friends, I've tried on solaris, but I could n't get ascii data dd if=binaryinputfile bs=1 skip=3800 count=4 | od -t u4 output : INDBU3:/usr/users/FTAMUSER/kk $ dd if=SMP20041006173649188151 bs=1 skip=3800 count=4 | od -t u4 4+0 records in 4+0 records out 0000000 0000000000 0000004... (4 Replies)
Discussion started by: krishna
4 Replies

4. UNIX for Dummies Questions & Answers

EBCDIC to ASCII conv for packed decimals.

By using dd command in Unix one can convert EBCDIC file into ASCII. It fails when it comes to having packed decimals within the EBCDIC file. The resultant of it has garbage chars. How can we have EBCDIC file convertedinto ASCII, which has packed decimal data in it? Thanks in advance. (3 Replies)
Discussion started by: videsh77
3 Replies

5. Shell Programming and Scripting

convert ascii values into ascii characters

Hi gurus, I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies

6. Shell Programming and Scripting

PERL:How to convert numeric values txt file to PACKED DECIMAL File?

Is there any way to convert numeric values txt file to PACKED DECIMAL File using PERL. Regards, Alok (1 Reply)
Discussion started by: aloktiwary
1 Replies

7. Shell Programming and Scripting

need to convert a decimal value to an ascii char with awk for the field delimiter

Hello, I need an awk script to receive a variable that's an decimal value such as 009 or 031 and then convert this value to an ascii character to use as the FS (field separator for the input file). For example, 009 should be converted to an ascii tab 031 should be converted to an ascii... (1 Reply)
Discussion started by: script_op2a
1 Replies

8. Shell Programming and Scripting

Ebcidic to ASCII (Packed decimals are there)

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) (12 Replies)
Discussion started by: Anusha_Reddy
12 Replies

9. Programming

Urgent help needed.. C++ program to convert decimal to hexa decimal

Hi , seq can be 0...128 int windex = seq / 8; int bindex = seq % 8; unsigned char bitvalue = '\x01' << (7-bindex) ; bpv.bitmapvalue = bitvalue; This is the part of a program to convert decimal to bitmap value of hexadecimal. I want this to change to convert only to... (1 Reply)
Discussion started by: greenworld123
1 Replies

10. Shell Programming and Scripting

Convert Hex to Ascii in a Ascii file

Hi All, I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting? Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies
iconv_ko(5)							File Formats Manual						       iconv_ko(5)

NAME
iconv_ko - code set conversions in Korean (ko) locale AVAILABILITY
SUNWkleu DESCRIPTION
The following code set conversions are supported: Code Set Conversions Supported Code Symbol TargetCode Symbol Wansung ko_KR-euc Johap ko_KR-johap92 Wansung ko_KR-euc Packed ko_KR-johap Wansung ko_KR-euc N-Byte ko_KR-nbyte Wansung ko_KR-euc ISO-2022-KR ko_KR-iso2022-7 Johap ko_KR-johap92 Wansung ko_KR-euc Packed ko_KR-johap Wansung ko_KR-euc N-Byte ko_KR-nbyte Wansung ko_KR-euc ISO-2022-KR ko_KR-iso2022-7 Wansung ko_KR-euc The conversions are performed as like following descriptions. Wansung to Johap and Johap to Wansung For the conversion between Wansung which is in Korean EUC representation of KS C 5601-1992 and also known as Completion code and Johap which is described at KS C 5601-1992 Annex 3: Supplementary Code System (2 Byte Johap Code System) and also known as Combination code, all characters can be mapped if conversion is from Wansung to Johap. However, from Johap to Wansung conversion, certain Hangul characters which are not in KS C 5601-1992 precompsed character set will not be able to mapped. Such characters will be mapped into underscore charac- ter (octal value of 137) of KS C 5636. In case of Hanja and special symbol characters, they will follow the mapping rules of Table 3 of Annex 3 of KS C 5601-1992. Wansung to Packed and Packed to Wansung For the conversion between Wansung and Packed which is described at KS C 5601-1987 Annex 3: Supplementary Code System (2 Byte Johap Code System), all characters except Hanja and special symbol characters can be mapped if conversion is from Wansung to Packed. Such Hanja and special symbol characters will be mapped into underscore character (octal value 137) of KS C 5636. From Packed to Wansung conversion, cer- tain Hangul chracters will not be able to mapped since not every Hangul Packed code is representable in Wansung. Such characters will be mapped into underscore character of KS C 5636. Wansung to N-Byte and N-Byte to Wansung For the conversion between Wansung and N-Byte which is described at KS C 5601-1992 Annex 4: 7 Bit Hangul Alphabet codes, all characters except Hanja and special symbol characters can be mapped. Such Hanja and special symbol characters will be mapped into underscore charac- ter (octal value 137) of KS C 5636. Wansung to ISO-2022-KR and ISO-2022-KR to Wansung For the conversion between Wansung and ISO-2022-KR which is described at RFC 1557: Korean Character Encoding for Internet Messages, all characters can be mapped. FILES
/usr/lib/iconv/ko_KR-euc%ko_KR-johap92.so Shared object for Korean EUC to Johap code conversion /usr/lib/iconv/ko_KR-euc%ko_KR-johap.so Shared object for Korean EUC to Packed code conversion /usr/lib/iconv/ko_KR-euc%ko_KR-nbyte.so Shared object for Korean EUC to N-Byte code conversion /usr/lib/iconv/ko_KR-euc%ko_KR-iso2022-7.so Shared object for Korean EUC to ISO-2022-KR code conversion /usr/lib/iconv/ko_KR-johap92%ko_KR-euc.so Shared object for Johap to Korean EUC code conversion /usr/lib/iconv/ko_KR-johap%ko_KR-euc.so Shared object for Packed to Korean EUC code conversion /usr/lib/iconv/ko_KR-nbyte%ko_KR-euc.so Shared object for Johap to Korean EUC code conversion /usr/lib/iconv/ko_KR-iso2022-7%ko_KR-euc.so Shared object for ISO-2022-KR to Korean EUC code conversion SEE ALSO
iconv(1), iconv(3), iconv(5) 10 Mar 1995 iconv_ko(5)
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy