Re: how to translate to free format?
- From: Jeremy Boden <jeremy@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 23:49:39 +0100
On Wed, 21 Jun 2006 04:04:55 +0000, Jonathan Ball wrote:
Kaj Julius wrote:Some special characters are fine e.g. @ translates across all languages
There are no MOVE operation codes in free format.
Instead, you use the EVAL op code. However, there also
are no field definitions in the calculations section,
so you need to create the target field in a data
specification (D-spec)
Well, it gets even better. In most cases you can even drop the Eval op code
and simply assign the value:
p@parm = s@outds;
I seldom use the eval op code these days.
Nor do I. For some reason, when I think about the
conversion from fixed-position specs to free-format, I
still think to code the EVAL; but when I write
free-format code from scratch, I never use it.
BTW. If you ever consider using your code internationally it is a very bad
idea to use a character like @ in variabel names.
(it's commonly used in email addresses).
--
Jeremy Boden
.
- Prev by Date: Re: RPG DATE QUESTION
- Next by Date: Re: Telnet-SSL Questions
- Previous by thread: RPG DATE QUESTION
- Next by thread: Operations Console / Client Access Problem
- Index(es):