× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Buck already gave an excellent answer, but perhaps I can shed a few more
rays of light:

* as I think was pointed out on another list, if you're looking for a
social security number, the common formatting is 111-11-1111, not
111-111-111. Obviously, the format that you really want will affect how it
is coded. . . .  :-)

* SSNO is defined as having 11 positions, but your end result only has
room for 9 digits (plus the 2 hyphens). If you try to move all of SSNO
into SS and then replace two characters with hyphens, you won't end up
with all of SSNO in your result. What format is SSNO in? The answer will
also affect your coding. . .

* S3 starts at postion 4 of SSNO, but you are moving it into SS starting
at  position 5. Again, since SSNO and SS are the same number of
characters, are you sure that's really what you want to do? Same with S5
(starts at position 8 in SSNO, moved to SS starting at position 9).

I think if you look at SSNO and then compare it with what SS looks like
after you're done, you'll see how all the MOVEs affect things. Then, based
on what you want to happen, you should be able to figure out how to make
the MOVEs work. . . .

HTH,

rpg400-l@midrange.com writes:
>D SS              S              1    DIM(11)
>
>
>D                 DS
>D  SSNO                   1     11
>D  S1                     1      3
>D  S3                     4      7
>D  S5                     8     11
>
>c    MOVEA     S1            SS(1)
>c    MOVEA     S3            SS(5)
>c    MOVEA     S5            SS(9)
>
>
>C                   MOVEA     '-'           SS(4)
>C                   MOVEA     '-'           SS(7)


Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.