EBCDIC/ASCII Conversion With RPC To IBM Mainframe

EBCDIC/ASCII Conversion With RPC To IBM Mainframe

Post by Startup Consulting Compa » Sat, 12 Oct 1991 04:08:36

In building an RPC application between an IBM host and an
ASCII client (e.g., MS-DOS and MS-Windows), am I going to
need to do the EBCDIC/ASCII translation myself?  Are there
any other gotchas specific to using RPC in this environment?

I'm trying to put together a network API that is callable from
ASCII clients to servers based on UNIX, VMS, and IBM mainframes.
I'm wondering whether there is a clean way to do this so
that the client doesn't need to know where the server is and what
kind of OS it is running ahead of time.  


1. How to transmit int's to mainframe (ASCII to EBCDIC sort of)?

Hello:  I'm doing data transfers using LU 6.2 (IBM's SNA peer to peer comm
protocol) between a PS/2 (AIX 1.2.1, Uh, IBM's UNIX) and
an IBM mainframe.  Currently, I know how to transfer character data.  I
convert it from ASCII to EBCDIC on the PS/2 before I send it,
no problem for character only data.

What I want to know is does anyone know how to transfer integers?  What I'd
like to do is transfer a "C" int (4 bytes) or a short int (2 bytes) up to
the mainframe for a COBOL program.  The COBOL program would use something
like S9(7), I think?  Is there some transformation that I can do to the
integer before I transfer it analogous to the ASCII to EBCDIC conversion of
the character data?

The reason I want to do this is that there will be a lot of stuff flying
back and forth, and I don't want the overhead of large numbers converted
to lengthy character strings.

I'm I out to lunch here?  Should I just transfer characters and be done with

Scott Ables, Analyst, Consolidated Freightways, Inc., POB 4845, Portland,
OR 97208  voice: 503-499-2130 fax 503-499-2182

Public Access UNIX at (503) 644-8135 (1200/2400) Voice: +1 503 646-8257

2. 2.5.21: "ata_task_file: unknown command 50"

3. EBCDIC/ASCII Conversion

4. xfree86config and EGA Monitor

5. dd EBCDIC to ASCII Conversion Problem

6. An ode to Linux

7. SOS: C Routines for ASCII to EBCDIC Conversion and Vice-versa


9. EBCDIC to ASCII conversion program

10. EBCDIC & ASCII Conversion Routines Needed

11. EBCDIC to ASCII Conversion

12. EBCDIC -> ASCII conversion (addenda)

13. EBCDIC to ASCII conversion