Home > Archive > Cobol > May 2004 > INSPECT CONVERTING gives TR not TRT was Re: Avoiding Logic Error?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
INSPECT CONVERTING gives TR not TRT was Re: Avoiding Logic Error?
|
|
| Clark F. Morris, Jr. 2004-05-15, 11:30 am |
| docdwarf@panix.com wrote:
> In article <tjjpc.6742$hH.165434@bgtnsc04-news.ops.worldnet.att.net>,
> Arnold Trembley <arnold.trembley@worldnet.att.net> wrote:
>
> [snip]
>
>
>
>
> INSPECT was one, STRING/UNSTRING were others... I don't recall ever coding
> a SEARCH for a CICS program, things were either in very small tables or
> one would hit a file/table to get them.
>
> [snip]
>
>
>
>
> I'll never forget the 'holy excrement!' sensation when I first saw a
> multi-item INSPECT's PMAP... errrr, LISTing under IGYCRCTL... I'll try to
> remember that for Monday, as well; to code
>
> INSPECT INPUT-REC REPLACING ALL 'a' BY 'A'
> ALL 'b' BY 'B'
> ...
> ALL 'z' BY 'Z'.
>
> (or whatever the syntax is that'll compile... can't remember if each one
> needs an ALL or not)
>
> ... and compile it under IKFCBL00 and IGYCRCTL. The former will produce
> what is technically called a 'God-Awful Ugly Mess' while the latter will
> produces something like two or four statements... one of which is a TRT, I
> know, but I forget the rest.
The instruction is TR for Translate which converts as stated above as
opposed to TRT - Translate and Test which is used to scan for selected
characters and set condition codes and Register 1 with the found character.
>
>
>
>
> ... or themselves, see my response earlier.
>
> DD
>
| |
| docdwarf@panix.com 2004-05-15, 9:30 pm |
| In article <c85amu$pb6$1@news.eusc.inter.net>,
Clark F. Morris, Jr. <cfmtech@istar.ca> wrote:
>docdwarf@panix.com wrote:
[snip]
>The instruction is TR for Translate which converts as stated above as
>opposed to TRT - Translate and Test which is used to scan for selected
>characters and set condition codes and Register 1 with the found character.
If that is so, Mr Morris, then it seems I've once again demonstrated
porosity of memory; thanks greatly for the input.
DD
|
|
|
|
|