Just found a good one today. Apparently the clear opcode won't clear a record format if the file is defined as an input file. This in itself is fine but the compiler only issues you a severity 00 warning that it won't really clear the fields.
Foolishly I assumed that it would do as it's told if it compiled.
Wonders never cease!
Foolishly I assumed that it would do as it's told if it compiled.

Wonders never cease!





I haven't come from an RPG III background. I started straight on ILE free format subprocedures. I learnt a bit on a course I took in the first month of joining and the rest I've picked up from colleagues, Cozzi's book or pressing F1 in WSDC. If I do that now to look at the clear opcode this is what I get:

Comment