Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
2
answers
358
views
How to print an EBCDIC character table to stdout
So `ascii` will print an ascii character table to stdout. Is there a way to print the same thing, but for the EBCDIC character encoding?
So
ascii
will print an ascii character table to stdout. Is there a way to print the same thing, but for the EBCDIC character encoding?
Seamus
(3763 rep)
Jan 9, 2023, 01:52 PM
• Last activity: Jan 9, 2023, 06:16 PM
2
votes
2
answers
254
views
combine multiple commands like tr, iconv and dd
New to shell scripting, I have few commands like this. Is it optimal to have such temporary files or should I try to combine all these commands ? if it is latter, can you help me to redirect output from dd command to tr command and then to iconv. Thanks. dd if=abcd.dat cbs=38 conv=block of=abcd.temp...
New to shell scripting, I have few commands like this. Is it optimal to have such temporary files or should I try to combine all these commands ? if it is latter, can you help me to redirect output from dd command to tr command and then to iconv. Thanks.
dd if=abcd.dat cbs=38 conv=block of=abcd.temp
cat abcd.temp | tr -d "\n" | tr -d "\r" > abcd.output
iconv -f ASCII -t EBCDIC-US abcd.ebcdic
Ram
(25 rep)
Aug 4, 2021, 08:36 PM
• Last activity: Aug 4, 2021, 09:08 PM
0
votes
2
answers
866
views
Can CentOS be set to pure EBCDIC?
I need to directly manipulate files from a mainframe. Text would be encoded in EBCDIC. Data can contain binary and packed decimal fields. I know I can deal with the data. I am trying to avoid the conversion(s). (and the trouble with converting each field based on it being text or binary). I am famil...
I need to directly manipulate files from a mainframe. Text would be encoded in EBCDIC. Data can contain binary and packed decimal fields. I know I can deal with the data. I am trying to avoid the conversion(s). (and the trouble with converting each field based on it being text or binary). I am familiar with mainframe, USS and CentOS systems. What I would like to do is flip CentOS to be pure EBCDIC. A search on the internet and StackExchange has revealed very little.
I saw an article where Sammyrulez had "... succesfuly added EBCDIC support to a CentOS box by adding lang and encoding to /etc/i18n/sysconfig."
It seems like there should be more to it than this.
I plan to use COBOL via GCC or whatever product works best. (one hurdle at a time)
Has anyone been through this already?
Donald S
(11 rep)
Oct 12, 2014, 02:52 PM
• Last activity: Oct 12, 2014, 11:49 PM
Showing page 1 of 3 total questions