🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ibm.software.varpg
Article #34

Re: struct in RPG

#34
From: Bart
Date: Thu, 29 Jun 2000 00:00
22 lines
1742 bytes
Sergey - I'll give you a quick answer but this is not the right forum
for your question.  You should try RPG400-L at www.midrange.com.

The reason you can't have two fields with the same name is simply that
RPG does not allow qualification of reference.  Therefore if it were to
allow two fields of the same name you would not be able to differentiate
between them.

Sergey wrote:

> Hi dear All!
> As correct to describe the structure in RPG?
> If through DS, that why it is impossible in different structures to
> describe the field with alike names?
> Otherwise, as possible do the dynamic list:
>                  _____          ______        _____
>                 | *next  | --> | *next  | --> | *next | --> [end]
> [first] <--  | *last   | <---| *last  | <---| *last   |
>                 |  Data |         | Data  |        | Data   |
>
> Tnx...
> Best, beginner at RPG - Sergey.
Technical Details
Message-ID: <395B91B8.BA70990C@attglobal.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39375110.7C52F400@land6.nsu.ru>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb1c0,746a35bf47139e92
X-Google-Attributes: gidfb1c0,public
X-Google-Thread: 10fc2d,746a35bf47139e92
X-Google-Attributes: gid10fc2d,public
From: Bart <halna@attglobal.net>
Subject: Re: struct in RPG
Date: 2000/06/29
Message-ID: <395B91B8.BA70990C@attglobal.net>
X-Deja-AN: 640490825
Content-Transfer-Encoding: 7bit
References: <39375110.7C52F400@land6.nsu.ru>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@news.software.ibm.com
X-Trace: news.software.ibm.com 962302042 33350 24.69.162.131 (29 Jun 2000 18:07:22 GMT)
Organization: IBM Software Group                 
Mime-Version: 1.0
Reply-To: halna@attglobal.net
NNTP-Posting-Date: 29 Jun 2000 18:07:22 GMT
Newsgroups: ibm.software.varpg,ibm.software.code400