Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

record layouts

$
0
0

I would like to be able to use an FD record layout in a derived class.  I don't want any instance of the class to be able to use the fields in the record layout so I have them marked as private.  I would rather use protected.  Can this be done?

below is the code that I am working with.  If I make the private field protected I get the following compile error

Error 2 COBCH0885 : Visibility attributes can only be used with native managed types at 01

selecttest-file

assign       to"\temp\test.dat"

organizationisindexed

access       isdynamic

recordkey   istest-key

lockmode    ismanual

filestatus  isfileStatus.

      

fd  test-file.

       01 test-rec                           private.

           05  test-key    pic  x(07)          private.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>