• Declaring primary file in fully free format in rpgle and error *RNF7421

    From techie21 IT@21:1/5 to All on Thu Jan 13 06:47:59 2022
    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 .....

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Yann Oche@21:1/5 to All on Fri Mar 4 01:08:59 2022
    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'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)