Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* VMS to IBM 3090(EBCIDIC) info needed
@ 1992-03-24 23:04 mjb
  1992-03-25 12:02 ` Jari Tavi
  0 siblings, 1 reply; 6+ messages in thread
From: mjb @ 1992-03-24 23:04 UTC (permalink / raw)


Hello all;

We need to gat a Vax 4000 VMS 5.4 to talk to an IBM 3090 VS(?) to
transfer files. The IBM wants EBCDIC and a synchronous modem connection.
We have a MultiTech V32 (9600 Hayes compat) modem on the VAX. 
The IBM has ????(sorry) at this point I just know its a synchronous modem.
Sooooo... Is there a way to get our ascii files to that machine in EBCDIC?

Has anyone done this???? (sorry so stupid about this)

One of the old IBM people on site said the VAX must be dumb or something.

I quickly said the IBM just hasn't got there yet.(oh no IBM vs. DEC)

ANY Info on this would help greatly.

Thank You very much.

-- 
+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
Mike Braun                      Disclaimer:
Support Dept.                   My opinions count for nothing to anybody and
Effective Management Systems    are not my employers.
Milwaukee, WI USA               
Internet:  mjb@lime.ems.com     "The Bill of Rights" (use it or loose it) 
Ma Bell :  +800-227-9594                                  
+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VMS to IBM 3090(EBCIDIC) info needed
  1992-03-24 23:04 VMS to IBM 3090(EBCIDIC) info needed mjb
@ 1992-03-25 12:02 ` Jari Tavi
  1992-03-25 22:25   ` Bernhard Fabricius
  1992-03-25 23:07   ` Malcolm Wood
  0 siblings, 2 replies; 6+ messages in thread
From: Jari Tavi @ 1992-03-25 12:02 UTC (permalink / raw)




Hmmmm....someone who's not using EBCDIC is dummy...best joke I've heard
in long time...

You'll have some choises to implement this:

	- hunt for pd or shareware sw which floats around netland. 
	  Someone else might be able to give some more hints.

	- "steal" the EBCDIC to/from ASCII conversion code and hack
	  it to fill your needs. You could get the code for example
	  from tn3270 source code.

	- buy some software! That sw could be some 3rd party stuff
	  (which I don't know) or DEC SNA/BSC products which have very
	  wide variety of functionality depending on your volumes and
	  functional requirements. These tools do automatic ASCII to
	  EBCDIC conversions etc.


=============================================================================
Full-Name:      Jari Tavi			
Organization:   DEC Finland                     Dept:           EIS/ACT
Tel:            +358-0-434 5252                 DTN:            879-5252
E-mail:         rixrax::jpt                     A1-mail:        Jari Tavi @FNO
Internet:       jpt@rixrax.enet.dec.com
Address:        Digital Equipment Corporation Oy
                PL 16
                02201 Espoo
                FINLAND
===============================================================================
* All opinions are my personal, and do not necessarily represent opinions of
* my employer! 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VMS to IBM 3090(EBCIDIC) info needed
  1992-03-25 12:02 ` Jari Tavi
@ 1992-03-25 22:25   ` Bernhard Fabricius
  1992-03-31  5:18     ` Jari Tavi
  1992-03-25 23:07   ` Malcolm Wood
  1 sibling, 1 reply; 6+ messages in thread
From: Bernhard Fabricius @ 1992-03-25 22:25 UTC (permalink / raw)


In article <1992Mar25.120231.6388@rdg.dec.com>, jpt@salama.fno.dec.com 
(Jari Tavi) replies to a question regarding ASCII to EBCDIC conversion:
> 
> 
> Hmmmm....someone who's not using EBCDIC is dummy...best joke I've heard
> in long time...
> 
Agree, agree...

> You'll have some choises to implement this:
> 
> 	- hunt for pd or shareware sw which floats around netland. 
> 	  Someone else might be able to give some more hints.
> 
> 	- "steal" the EBCDIC to/from ASCII conversion code and hack
> 	  it to fill your needs. You could get the code for example
> 	  from tn3270 source code.
> 
> 	- buy some software! That sw could be some 3rd party stuff
> 	  (which I don't know) or DEC SNA/BSC products which have very
> 	  wide variety of functionality depending on your volumes and
> 	  functional requirements. These tools do automatic ASCII to
> 	  EBCDIC conversions etc.
> 
> 
Well, seeing we are dealing with VMS: How about trying to call

    LIB$TRA_ASC_EBC(ASCII-SOURCE-STRING,EBCDIC-DESTINATION-STRING) ?

In that way you don't have to steal. You don't even have to think! (And, YES,
there is a LIB$TRA_EBC_ASC subroutine to do the reverse translation, and also a
generalized one, LIB$MOVTC, which will accept look-up tables of exotic versions
of the IBM encoding - especially the so-called Reversible Translation Table.)

> =============================================================================
> Full-Name:      Jari Tavi			
> Organization:   DEC Finland                     Dept:           EIS/ACT

Shall we quietly assume that Mr Tavi is in the Ultrix camp ? RTL is one of the
strongest points of VMS.....

Cheers

Bernhard
--------------------------------------------------------------------------------
Dr Bernhard Fabricius
Academic VAX/VMS Support
Department of Nuclear Physics
Australian National University

InterNet: BEAR@NUC.ANU.EDU.AU
    POSTMASTER@NUC.ANU.EDU.AU


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VMS to IBM 3090(EBCIDIC) info needed
  1992-03-25 12:02 ` Jari Tavi
  1992-03-25 22:25   ` Bernhard Fabricius
@ 1992-03-25 23:07   ` Malcolm Wood
  1992-03-27  5:16     ` David Karl Leikam
  1 sibling, 1 reply; 6+ messages in thread
From: Malcolm Wood @ 1992-03-25 23:07 UTC (permalink / raw)


On EBCDIC conversion-

I wrote a one-page COBOL program (quite an achievement in itself! :-)
which read EBCDIC and wrote ASCII; obviously only a minor mod is 
needed to do the reverse.

This was several years ago and I discarded the program; it was trivial 
anyway. Go through the COBOL reference manual. Off the top of my 
head I recall using statements like this:
...
SPECIAL-NAMES.
    ALPHABET EBBLES IS EBCDIC.
...
FD IN-FILE ...
    RECORDING MODE IS EBBLES.

And the PROCEDURE DIVISION was a simple READ then WRITE until end of 
file on input.

There's probably an even easier way to do it than this...

--------------------------------------------------------------
Malcolm Wood, Department of Commerce, University of Queensland
--------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VMS to IBM 3090(EBCIDIC) info needed
  1992-03-25 23:07   ` Malcolm Wood
@ 1992-03-27  5:16     ` David Karl Leikam
  0 siblings, 0 replies; 6+ messages in thread
From: David Karl Leikam @ 1992-03-27  5:16 UTC (permalink / raw)



  [Translating Ascii to Ebcidic via lib$trans...]
 
  All very well and wonderful, as long as you're only concerned with strings.
Gets a little tougher with integers, and a lot tougher with floats, 
especially if you haven't a clue how the other beast (whichever is "other"
in your situation) stores/represents such animacules. For that, alas, there
ain't no easy answer. 
 
  Haunt bookstore/library. Invent algorithm. Code, code, code. Translate.
Forget algorithm and erase file containing same. Read question about same
many months later on comp.os.vms. Advise, advise.
 
  Works for me...



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VMS to IBM 3090(EBCIDIC) info needed
  1992-03-25 22:25   ` Bernhard Fabricius
@ 1992-03-31  5:18     ` Jari Tavi
  0 siblings, 0 replies; 6+ messages in thread
From: Jari Tavi @ 1992-03-31  5:18 UTC (permalink / raw)




|> 
|>     LIB$TRA_ASC_EBC(ASCII-SOURCE-STRING,EBCDIC-DESTINATION-STRING) ?
|> 
|> In that way you don't have to steal. You don't even have to think! (And, YES,
|> there is a LIB$TRA_EBC_ASC subroutine to do the reverse translation, and also a
|> generalized one, LIB$MOVTC, which will accept look-up tables of exotic versions
|> of the IBM encoding - especially the so-called Reversible Translation Table.)

Yup, I should have remembered to mention these too, but they are only part
of the solution. If we want to get full solution we must take care of data
other than character strings too.

|> Shall we quietly assume that Mr Tavi is in the Ultrix camp ? RTL is one of the
|> strongest points of VMS.....
|> 
|> Cheers

I agree that VMS RTL is a strong and mighty collection of services! 

You also assumed correctly in two cases: I'm currently (mostly)
in UNIX-land, and yes, I'm a Mr...You can't always tell from these 
Scandinavian names... ;-)


===============================================================================
Full-Name:      Jari Tavi			
Organization:   DEC Finland                     Dept:           EIS/ACT
Tel:            +358-0-434 5252                 DTN:            879-5252
E-mail:         rixrax::jpt                     A1-mail:        Jari Tavi @FNO
Internet:       jpt@rixrax.enet.dec.com
Address:        Digital Equipment Corporation Oy
                PL 16
                02201 Espoo
                FINLAND
===============================================================================
* All opinions are my personal, and do not necessarily represent opinions of
* my employer! 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1992-03-31  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-03-24 23:04 VMS to IBM 3090(EBCIDIC) info needed mjb
1992-03-25 12:02 ` Jari Tavi
1992-03-25 22:25   ` Bernhard Fabricius
1992-03-31  5:18     ` Jari Tavi
1992-03-25 23:07   ` Malcolm Wood
1992-03-27  5:16     ` David Karl Leikam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox