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



I'm trying to Combine two files with the same record format name.  I was 
trying to use LIKEREC and Datastructures to do this.  I'm on V5R2.  I'm 
getting "Data Structure MREC is not allowed for tis operation" at compile 
time.  Here's some snips of the code...

     FCUSTOMR   IF   E           K DISK    Rename(GXCUSTOMR:FHTCUST)
     F                                     Prefix('F')

      // MSA customer master by customer name
     FMSCSTL1   UF A E           K DISK    Rename(GXCUSTOMR:MSACUST)
     F                                     Prefix('M')


      // Record Definitions
     D FRec            DS                  LIKEREC(FHTCUST)
     D MRec            DS                  LIKEREC(MSACUST)



      /Free

        READ FHTCUST FRec;

        DOW NOT %EOF(CUSTOMR);

            // Add Customer
            MREC = FRec;

            WRITE MSACUST MREC;

            READ FHTCUST;
        Enddo;


       *INLR = *On;

      /End-Free


I get this error on the "WRITE MSACUST MREC;" line.  I thought that you 
could just specify a DS on the write command.

thanks!

Jeff Stevens
Mize, Houser & Co. P.A.
913 451 1882
JStevens@xxxxxxxxxxxxxx


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.