How about this?

$ printf "%s" foo | iconv -f 1047 -t 819 -T > foo.txt        
$ ls -T foo.txt     
t ISO8859-1   T=on  foo.txt

Now, how to do that in assembler per the original thread, I have no idea.

--
 
Donald Grinsell
State of Montana
406-444-2983
[email protected]

"If at first the idea is not absurd, then there is no hope for it."
~ Albert Einstein

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Friday, August 08, 2014 11:03 AM
To: [email protected]
Subject: Re: Code Pages (was: Convert to base64 help)

On 2014-08-08, at 10:38, Grinsell, Don wrote:

> Take a look at the -F (uppercase) flag.  It's supposed to get the info from 
> the file, but I've not actually verified that it does so.
>  
Yup.  Works:

user@HOST: ls -T tinyAA.file                                                    
               
m ISO8859-1   T=off tinyAA.file
user@HOST:                                                                      
               
user@HOST: iconv -f ISO8859-1 -t IBM-1047 tinyAA.file                           
               
Hello, world! 4
user@HOST: 
user@HOST: iconv -F           -t IBM-1047 tinyAA.file                           
               
Hello, world! 4

Of course, since iconv writes only to stdout, there's no complementary option 
to set the tag of the output file.

Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to