Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Spanish characters in Cobol-how to?
I am working on a Cobol program that produces letters. The verbage is
hard coded in the
program. My task is to add a Spanish translation to the current English
wording. My problem is: how do I get a tilde and accent marks in the
Spanish?

Thanks,
Brian


Report this thread to moderator Post Follow-up to this message
Old Post
hp3kpro
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
On 8 Aug 2006 07:05:30 -0700, "hp3kpro" <BJLPA@hotmail.com> wrote:

>I am working on a Cobol program that produces letters. The verbage is
>hard coded in the
>program. My task is to add a Spanish translation to the current English
>wording. My problem is: how do I get a tilde and accent marks in the
>Spanish?

What is your environment?

Posted Via mcse.ms Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.mcse.ms

Report this thread to moderator Post Follow-up to this message
Old Post
Howard Brazee
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
HP3000. MPE\ix .



Howard Brazee wrote:
> On 8 Aug 2006 07:05:30 -0700, "hp3kpro" <BJLPA@hotmail.com> wrote:
> 
>
> What is your environment?
>
>  Posted Via mcse.ms Premium Usenet Newsgroup Services
> ----------------------------------------------------------
>     ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
>                 http://www.mcse.ms


Report this thread to moderator Post Follow-up to this message
Old Post
hp3kpro
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
On 8 Aug 2006 09:01:38 -0700, "hp3kpro" <BJLPA@hotmail.com> wrote:

>HP3000. MPE\ix .
>
>
>
>Howard Brazee wrote: 

I can't help you there, maybe somebody else can.

Posted Via mcse.ms Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.mcse.ms

Report this thread to moderator Post Follow-up to this message
Old Post
Howard Brazee
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
hp3kpro wrote:
> I am working on a Cobol program that produces letters. The verbage is
> hard coded in the
> program. My task is to add a Spanish translation to the current
> English wording. My problem is: how do I get a tilde and accent marks
> in the Spanish?

Just type them in. COBOL doesn't care what characters are used in a text
field.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
I wouldn't think the platform would be important as COBOL is pretty
much COBOL.
Do I have to resort to using some escape sequences or hex?
Thanks.

Howard Brazee wrote:
> On 8 Aug 2006 09:01:38 -0700, "hp3kpro" <BJLPA@hotmail.com> wrote:
> 
>
> I can't help you there, maybe somebody else can.
>
>  Posted Via mcse.ms Premium Usenet Newsgroup Services
> ----------------------------------------------------------
>     ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
>                 http://www.mcse.ms


Report this thread to moderator Post Follow-up to this message
Old Post
hp3kpro
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
One can't type 2 characters at the same time. In other words, as in the
word nino, the "~" has to go above the second letter n.


HeyBub wrote:
> hp3kpro wrote: 
>
> Just type them in. COBOL doesn't care what characters are used in a text
> field.


Report this thread to moderator Post Follow-up to this message
Old Post
hp3kpro
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
On 8 Aug 2006 11:46:18 -0700, "hp3kpro" <BJLPA@hotmail.com> wrote:

>I wouldn't think the platform would be important as COBOL is pretty
>much COBOL.
>Do I have to resort to using some escape sequences or hex?
>Thanks.

Possibly.   If your editor doesn't put them in, you would have to put
them in.   But if you use hex, it matters whether you are using ASCII
or EBCDIC.     But if you can type in your code (that isn't dependent
upon a font being loaded into Word or such), you should be able to use
it.   Or you can use whatever your printer understands, if it is to be
printed.

I typed in alt-0241 to get this: ñ
I typed in alt-0209 to get this:  Ñ

http://www.ascii.cl/htmlcodes.htm


Posted Via mcse.ms Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.mcse.ms

Report this thread to moderator Post Follow-up to this message
Old Post
Howard Brazee
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
hp3kpro wrote:
> I am working on a Cobol program that produces letters. The verbage is
> hard coded in the program.

That is the first mistake.  The verbage should be, for example, a
template that the
program merges into. Then any template can be used without the program
caring.
I do most of my printer output by merging into postscript templates.
All my XML,
HTML and data interchange is templated.

You could write out a text merge file that a word processor could use.

> My task is to add a Spanish translation to the current English
> wording. My problem is: how do I get a tilde and accent marks in the
> Spanish?

Presumably the 'letters' are to be printed rather than just be part of
the program. This requires that you first ask what the printer requires
in order to produce the correct characters. Then you would need to find
out what value those characters were and work out how to generate them
in the program. The code set used by your screen and keyboard may be
quite different but that is irrelevant as long as it is correct on the
printer.

For example on HP LaserJet Roma-8 symbol set the N~ and n~ are hex B6
and B7. These may appear as box drawing characters under Windows. Of
course a spanish keyboard might be useful for this, and set the screen
using code-set or someother mechanism to display the required
characters.


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
08-08-06 11:55 PM


Re: Spanish characters in Cobol-how to?
hp3kpro wrote:
> I am working on a Cobol program that produces letters. The verbage is
> hard coded in the
> program. My task is to add a Spanish translation to the current English
> wording. My problem is: how do I get a tilde and accent marks in the
> Spanish?
>
> Thanks,
> Brian
>
You might get some tips googling. Try the search phrase
"Spanish-Characters" in Google - I got 51,000 hits. There's a download
for $10 - don't know if it is relevant.

Jimmy

Report this thread to moderator Post Follow-up to this message
Old Post
James J. Gavan
08-08-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (3): [1] 2 3 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:14 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.