Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: 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 select test-file assign        to "\temp\test.dat" organization is indexed access        is dynamic record key    is test-key lock mode     is manual file status   is fileStatus .        fd   test-file .        01  test-rec                             private .            05  test-key     pic   x(07)          private .

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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