Hi,
How can we declare primary file in a fully free format RPGLE program also how to avoid *RNF7421-Operands are not compatible with the type of operator.
for below piece of program:-
If fld1 = 'ABCDEF' AND +
%Date(fld2 : *CYMD) = %Date AND +
(fld3 = 'AAA' or FLD3 = 'BBB');
Thanks .....Hi,
Le jeudi 13 janvier 2022 à 15:48:01 UTC+1, techie21 IT a écrit :
Hi,
How can we declare primary file in a fully free format RPGLE program also how to avoid *RNF7421-Operands are not compatible with the type of operator.
for below piece of program:-
If fld1 = 'ABCDEF' AND +
%Date(fld2 : *CYMD) = %Date AND +
(fld3 = 'AAA' or FLD3 = 'BBB');
Thanks .....Hi,
For primary, teh doc says: 'P Input or Update Primary file Not supported in free-form'
Le jeudi 13 janvier 2022 à 15:48:01 UTC+1, techie21 IT a écrit :
Hi,
How can we declare primary file in a fully free format RPGLE program also how to avoid *RNF7421-Operands are not compatible with the type of operator.
for below piece of program:-
If fld1 = 'ABCDEF' AND +
%Date(fld2 : *CYMD) = %Date AND +
(fld3 = 'AAA' or FLD3 = 'BBB');
Try SQL cursors and do a loop. You primary file will be the one that you are using in the Select. For MR, you can use JOIN. I hope it helps. Carlos IrigoyenThanks .....Hi,
For primary, teh doc says: 'P Input or Update Primary file Not supported in free-form'
Hi,
How can we declare primary file in a fully free format RPGLE program
also how to avoid *RNF7421-Operands are not compatible with the type of operator.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:37:49 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,094 |
Messages: | 5,274,354 |