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




It works for me.  Two key things:

a) You MUST use LIKEREC(shprec1:*INPUT).  You can't use ExtName for this
   on V5R2.  shprec1 must be the record format name, not the filename.

b) You MUST use the record format name on the READ statement as well,
   in other words, shprec1.

c) This support requires V5R2, so make sure you're using the V5R2
   compiler and not specifying TGTRLS(*PRV) or TGTRLS(V5R1M0) on the
   compile command (sometimes people change the defaults)

I changed your code to use LIKEREC, and it compiled and ran for me. Here's the code I tested:

     FCURPRVSHP IF   E           K DISK
     d
     d aaa             ds                  likerec(shprec1: *input)
     d bbb             ds                  likerec(shprec1: *input)
      /free
         setll *loval curprvshp;
         dow not %eof;
            read shprec1 aaa;
            read shprec1 bbb;
         enddo;
         //
         *inlr = *on;
         //
      /end-free

---
Scott Klement  http://www.scottklement.com

On Tue, 29 Nov 2005, Bruce Collins wrote:

Help me please.

I want to declare 2 data structures. One is AAA and the other is BBB. Both
of these are based off of file CURPRVSHP. I also need to have them
qualified.
This piece of code is just to test and see how it works by using debug to
view it in action.
.
Alas it would not compile. I received the errors:     RNF7701 - Data
Structure AAA is not allowed for the operation.

RNF7701 - Data Structure BBB is not allowed for the operation.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.