Hello all,
I have a bit of code that is bugging me.
If I have the following code:
When I try to compile, I get two *RNF7030 errors saying "The name or indicator field1 is not defined. " and "The name or indicator message is not defined. "
However, if I use this:
or:
the code compiles without error.
Can anyone explain to me why I can't define variables from a file definition template and my first example fails to compile?
Thanks!
I have a bit of code that is bugging me.
If I have the following code:
Code:
DCL-F file1 DISK(*EXT) TEMPLATE; // file1 contains field field1 DCL-S message LIKE(field1);
However, if I use this:
Code:
DCL-DS ds1 EXTNAME('FILE1') TEMPLATE END-DS; // file1 contains field field1 DCL-S message LIKE(field1);
Code:
DCL-F file1 DISK(*EXT); // file1 contains field field1 DCL-S message LIKE(field1);
Can anyone explain to me why I can't define variables from a file definition template and my first example fails to compile?
Thanks!
Comment