I want to do the following process using CPYF and COMMIT.
1.Receive a file by file transfer application such as FTP
2.Copy the file to existing file that has unique key by using CPYF
MBROPT(*ADD)
3.If a duplicate key is found, do ROLLBACK and cancel the copy operation
I tested above process using CL but I couldn't do ROLLBACK.
Can't a commitment control be used in CPYF operation?
Any suggestions would be appreciated.
Thanks,
Nob
"Nob" <tur...@bd6.so-net.ne.jp> a ecrit dans le message de news:
newscache$fkczuh$qp6$1...@news01a.so-net.ne.jp...
Sam
"Nob" <tur...@bd6.so-net.ne.jp> wrote in message
news:newscache$fkczuh$qp6$1...@news01a.so-net.ne.jp...
STRCMTCTL
CPYF
MONMSG CPF5009 CPF5034 EXEC(ROLLBACK)
ENDCMTCTL
Thanks and regards,
Nob
"Saml" <no...@nonesuch.com> wrote in message
news:j1M7c.579$oF.1...@eagle.america.net...
If you do a DSPJRN, are the entries for destination file linked to a commit
boundary?
If not, I'll suggest to do a STRCMTCTL CMTSCOPE(*JOB)
--
Christian Gstalder
"Nob" <tur...@bd6.so-net.ne.jp> a ecrit dans le message de
news:newscache$fkczuh$qp6$1...@news01a.so-net.ne.jp...