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




Hi Joep 

Thanks for you reply. 

I tried your suggestion and the compiler stoped with the same error.
I changed the code to 

> DDSHISTRC       E DS                  EXTName(SHISTRCL1)      
> D    RM                          3P 0 OVERLAY(DSHISTRC:72) DIM(24)   

and it still gave the same problem. 

According to the manual this should not be a problem.

Thanks

Tilo


-----Original Message-----
From: Joep Beckeringh [mailto:joep@xxxxxxxxxxxxxxxxxxx] 
Sent: 17 November 2004 15:25
To: RPG programming on the AS400 / iSeries
Subject: Re: Updating file via datastructure

Hi Tilo,

IIRC the field Record is added to the datastructure, thus making the 
datastructure longer than the record. You should add OVERLAY(DSHISTRC) to
the 
Record field.

Joep Beckeringh


Tilo von Brandis wrote:
> Hi 
>  
> I am trying to update a file using a datastructure because I want to
update
> 24 fields on the file as an array
>  
> D*                                                                 
>  
> When I try to update the file using the following command:
>  
>          UPDATE RISREC DSHISTRC;
>  
> the compiler gives the following error message:
>  
> *RNF7701 20 The data structure is not allowed for the operation.
>  
> What am I doing wrong?
>  
> Tilo von Brandis
> Manager: IT
> Safair (PTY) Ltd
> Work  : +27 11 928 0043
> Cell     : +27 83 675 7778
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.