PDA

View Full Version : equivalent for the CHKOBJ in the IFS?



Guest.Visitor
04-18-2002, 10:19 PM
Susan, The open source and free iSeries-toolkit (http://www.iseries-toolkit.org) includes a CHKIFSOBJ command. It uses the Unix access API to tell whether a file exists. You can also check authority. David Morris

J.Wells
04-19-2002, 05:05 AM
Susan, Check this site out: http://www.as400pro.com/TipsIFS.htm#2 I recently stumbled upon this site and have found it to be very useful. I think you will too. Joe

nycsusan@hotmail.com
04-19-2002, 12:20 PM
Joe & David, Thanks a lot! That was just what I needed! Susan

Guest.Visitor
04-19-2002, 03:54 PM
Another link: http://www.mcpressonline.com/mc?128@175.koVMfHb6dae.1@.f01d6e0

nycsusan@hotmail.com
04-19-2002, 03:54 PM
Is there an equivalent for the CHKOBJ command to determine if a file exists in the IFS? If a file by the same name already exists, I need to change my new file name slightly before copying it to the IFS directory. I plan to use the Copy To Import File (CPYTOIMPF) command to copy my transaction files to the IFS. The only escape message I can find for that command is "CPF2817 Copy command ended because of error." That is very generic. I am hoping someone can refer me to a command that would tell me, via an escape message or something similar, that the copy failed because the object exists. We are running at v5r1. Does anyone have any ideas? Thanks in advance! Susan