HP3000-L Archives

June 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nick Demos <[log in to unmask]>
Reply To:
Nick Demos <[log in to unmask]>
Date:
Wed, 7 Jun 2000 16:16:23 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
>
> That's because COBOL doesn't have "strings" per se, but rather
> "pre-allocated blocks of memory to be treated as character-based data".
> There are convolute methods [some even shown in this thread] to deal with
> these memory blocks "as if" they were "strings" as defined by more
> modern-day languages, but the simple fact remains that if your "source"
> memory block is defined as 30 characters, taking the right-most 4 characters
> of, say, "TOM EMERSON                   " is going to result in "    " for
> most of the methods you try...
>
> (the only ones that will get "RSON" will be ones that explicitly look for
> the LAST non-blank character...)
>
I guess I am missing something here.  AIR when I wanted to find the
right
most X characters in a field I MOVEd the item to a field defined as
right
justified and then picked the X characters out of that field.  The only
problem came if I wanted no blanks and the non blank characters were
less than X.

Am I missing something?

Nick D.

ATOM RSS1 RSS2