IBM Support

How to perform a rename using RNFR/RNRO in an FTP auto connect script? (SCI90764)

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

[{"Product":{"code":"SSG266","label":"IBM Sterling Connect:Enterprise for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

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?

Document Information

Modified date:
17 December 2019

UID

swg21528910