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




-----Original message-----
From: Jon Paris jon.paris@xxxxxxxxxxxxxx
Date: Tue, 30 Aug 2011 15:19:43 -0500
To: midrange-l@xxxxxxxxxxxx
Subject: Re: MIDRANGE-L Digest, Vol 10, Issue 1196


On Aug 30, 2011, at 2:54 PM, midrange-l-request@xxxxxxxxxxxx wrote:

In COBOL, I could do something like this:

01 CODE128.
05 FILLER PIC X(10) VALUE 'ABCDEFGHIJ'.
05 FILLER PIC X(1) VALUE 'K'.
05 FILLER PIC X(5) VALUE '12345').

01 CODE128TABLE REDEFINES CODE128.
05 CODE128-CHARACTER PIC X OCCURS 16 TIMES.

RPG IV equivalent.

D MyDS DS
D 10a Inz(ABCDEFGHIJ')
D 1a Inz('K')
D 5a Inz('12345')
D Array 1a Overlay(MyDS) Dim 16.

Pretty much the same as in COBOL really.

Jon Paris

www.partner400.com
www.SystemiDeveloper.com


Yes, it is. I just got tripped up on the specifics.

Thanks.

John McKee




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.