I have a CPYF in a CLLE program. I am looping inside my program each time through passing something different to the cpyf command. The first time through &VALUE = 'A', the second time through it is 'AA'. On the first pass it is pulling everything in FLDA that starts 'A', not just the values that equal 'A'. A little help.
CPYF FROMFILE(&FILE) TOFILE(QTEMP/&SVFILE) +
MBROPT(*REPLACE) CRTFILE(*YES) +
INCREL((*IF FLDA*EQ &VALUE)
CPYF FROMFILE(&FILE) TOFILE(QTEMP/&SVFILE) +
MBROPT(*REPLACE) CRTFILE(*YES) +
INCREL((*IF FLDA*EQ &VALUE)
Comment