10 New Functions We'd Like to See in RPG IV
Why couldn't we have free format declares similar to the CL form of declares. Anything could be declared. For example: DCL xxxxx *FILE or DCL C1 *CURSOR. If a cursor is declared then the compiler could determine how the SELECT opcode should be used in free format. If the SELECT opcode is used without the declared cursor then it is being used as SELECT...WHEN...ENDSL. When used with a declared cursor it would know it is an SQL statement. Get the idea.
Why couldn't we have free format declares similar to the CL form of declares. Anything could be declared. For example: DCL xxxxx *FILE or DCL C1 *CURSOR. If a cursor is declared then the compiler could determine how the SELECT opcode should be used in free format. If the SELECT opcode is used without the declared cursor then it is being used as SELECT...WHEN...ENDSL. When used with a declared cursor it would know it is an SQL statement. Get the idea.
Comment