× 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.


  • Subject: Re: changing two fields in a file
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Tue, 24 Aug 1999 06:46:45 -0700
  • Organization: Conex Global Logistics Services, Inc.

Actually, it was stated his 1 char alpha field going to numeric
was currently in the form '1' to 'B' for months of the year (one
character hexadimal).

Regards,

Jim Langston

Henrik Krebs wrote:

> Nedenfor er resultatet af din e-mail formular.
> Indsendt af hkrebs@hkrebs.dk
>
> message: >Use RPG 3 or 4.  Input externally described, output externally 
>described.
> >Rename the input record format.  Rename the input fields that are different.
> >Only 1 move(p) or moveL(p) per field is different.   15 line program like you
> >wanted.
>
> 15 lines? 9 will do if the alpha-content is valid numeric
> If the old file is named 'FILE' and has a record format 'REC' and then - 
>before creating the new file - is renamed 'OLDFILE' the nine lines look like:
> FOLDFILE IP  E                    DISK
> F            REC                               KRENAMEOLDREC
> FFILE    O   E                    DISK
> IOLDREC      01
> I              FIELD1                          OLD1
> I              FIELD2                          OLD2
> C                     MOVE OLD1      FIELD1
> C                     Z-ADDOLD2      FIELD2
> C   01                WRITEREC
> Any shorter?
> realname: Henrik Krebs
> email: hkrebs@hkrebs.dk
>
> REMOTE_HOST: 134.146.4.10
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.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.