I have a need to change the name of the file being FTP'ed to a network folder. My idea is to read the source text member with a RCVF command and update the line in the source file if a condition is met. The code that I have so far changes the data read from the file, but I need that source line to be updated back to the text file. What do I do to make that happen?
Here is the code -
OVRDBF FILE(QCLSRC) MBR(FTPAUDJRNL)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(ENDPGM1))
CHGVAR &CMD VALUE(%SST(&SRCDTA 1 3))
IF COND(&CMD *EQ 'put') THEN(DO)
CHGVAR (%SST(&SRCDTA 29 6)) VALUE(&DATE)