|
Good Morning,
When updating from a datastructure, you should use the LikeRec Key Word and
specify *OUTPUT.
DDSHISTRC DS LikeRec( SHISTRCL1 : *OUTPUT )
Assuming that SHISTRCL1 is the format of the file.
George
Tilo von Brandis
<tvonbrandis@safa
ir.co.za> To
Sent by: RPG400-L@xxxxxxxxxxxx
rpg400-l-bounces+ cc
gamaya=terisna.co
m@xxxxxxxxxxxx Subject
Updating file via datastructure
11/17/2004 05:47
AM
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
Hi
I am trying to update a file using a datastructure because I want to update
24 fields on the file as an array
DDSHISTRC E DS EXTName(SHISTRCL1)
D Record 406
D RM 3P 0 OVERLAY(Record:72) DIM(24)
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 mailing list archive is Copyright 1997-2025 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.