On Sat, 8 Feb 2020 16:31:56 -0500, Phil Smith III wrote:
>
>>How does it handle characters absent from IBM-037?
>
>I expect it will throw an error. This is, as you (Gil) know, one of the 
>problems with OP’s query: you can’t stuff thousands of pounds of potatoes into 
>a 256-pound sack. (OK, characters, not potatoes.)  ...
>
The Command Ref. says:
    If the input contains a character that is not valid in the destination code 
set, behavior
    depends on the system's iconv() function. See z/OS XL C/C++ Runtime Library 
Reference
    for more information about the character that is used for converting 
incorrect characters.
Which says:
    If iconv() encounters a character in the input buffer that is valid, but 
for which
    a conversion is not defined in the conversion descriptor, cd, then iconv() 
performs
    a nonidentical conversion on this character. The conversion is 
implementation-defined.

But no indication that it throws an error.  Of course the iconv utility could 
check
the output of iconv() and report its own error.

"implementation-defined"?  This is the document that's supposed to provide that
definition.  I'll submit an RCF.  And a minor one.  "nonidentical" is invented 
nonsense.
the correct term is "injective:"  
https://en.wikipedia.org/wiki/Injective_function

> ...
>>I wonder what was the motivation to require preallocated data set
>>names rather than the more flexible alternative of DDNAMEs?
>
>I believe it’s using ICONV on the USS side under the covers, which takes a 
>data set name.
> 
Appendix K of the Command Ref. does not list iconv as among the
utilities that accept data set names.  Of course, IBM is allowed to use
non-GUPI interfaces internally.

-- gil

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

Reply via email to