Rather than trying to get x'ac' to work for other people, why not leave the circumflex unchanged? Then other people would not have to try to get it to work. Their FTP will most likely convert the ASCII circumflex to EBCDIC x'5F', which is what the mainframe C compiler accepts as the exclusive-or operator.
You say you are replacing the circumflex with x'AC', presumably because you have to do that to get wc3270 to load it to the mainframe and get the desired EBCDIC x'5F' that the C compiler accepts. What if it turns out you don't have to do that? What if there is a way to make wc3270 send the file and have the ASCII circumflex translated to EBCDIC x'5F'? Looking at the wc3270 manual here: http://x3270.bgp.nu/wc3270-man.html there is a "Remap=no" option in the "Transfer" command. Have you tried using that? I tried it on a file that has a circumflex, and it came out as x'5F' on the mainframe. Without that option, it came out as x'B0'. See if "Remap=no" works that way for you. If it does, it will make the uploads simpler for you and for the other people. I have avoided referring to the character on the mainframe as a circumflex or as a logical not. The x'5F' displays on the wc3270 screen as a logical not, but on some other tn3270 programs going to the same host as the same user it displays as a circumflex, which works out nicely for C programmers. Bill On Sun, 9 Dec 2012 09:37:07 -0800, Ze'ev Atlas <[email protected]> wrote: >Yes, I know It did not work for the user Ze'ev Atlas On Fri, 7 Dec 2012 07:37:15 -0800, Ze'ev Atlas <[email protected]> wrote: >Hi all I edit my sourcecode base in ASCII (where it comes from) and I replace the circumflex (^) that C loves with logical not (x'AC' in ASCII) that the mainframe C requires. Then I load the thing to the mainframe with wc2370 which defaults to codepage 037 and my mainframe session happily shows logical not ( = x'5F'). When other people load this, it becomes something like comma (,). How could I convince all flavors of EBCDIC and EBCDIC upload to recognize logical not correctly? Ze'ev Atlas ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
