Question & Answer
Question
How to perform a rename using RNFR/RNRO in an FTP auto connect script? (SCI90764)
Cause
Answer
Use following script commands to perform rename
"RNFR TEST_DATA" /* Rename FROM filename */
if hcrc = 0 then NOP /* Check for Errors */
else do /* */
"USERLOG RNFR Failed. RNTO not Attempted"
say "RNFR Failed. RNTO not Attempted" /* Report in DTnnnnnn */
exit 8 /* */
end
/* */
"RNTO NEW_DATA" /* Rename TO filename */
if hcrc = 0 then "LIST" /* See files */
else do /* */
"USERLOG RNTO Failed. " /* Report in VLF */
say "RNTO Failed. " /* Report in DTnnnnnn */
exit 8 /* */
end
Historical Number
PRI27965
Product Synonym
[<p><b>]Fact[</b><p>];Connect:Enterprise OS/390;Release 1.2.00 [<br/>] SCI90764;[<p><b>]Goal[</b><p>];FAQ:How to perform a rename using RNFR/RNTO in an FTP auto connect script?
Was this topic helpful?
Document Information
Modified date:
17 December 2019
UID
swg21528910