From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,77e17c255992ce2 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,77e17c255992ce2 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-25 14:25:41 PST Xref: sparky comp.os.vms:7598 comp.sys.dec:2256 Path: sparky!uunet!munnari.oz.au!manuel!csc1.anu.edu.au!bxf103 From: bxf103@csc1.anu.edu.au (Bernhard Fabricius) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: VMS to IBM 3090(EBCIDIC) info needed Message-ID: <1992Mar26.092541.284@csc1.anu.edu.au> Date: 26 Mar 92 09:25:41 +1100 References: <1992Mar24.170445.215@lime.ems.com> <1992Mar25.120231.6388@rdg.dec.com> Organization: Nuclear Physics, ANU 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