skip to main content

Library Routines : RENAME

RENAME
The RENAME library routine renames a file.
Many aspects of the behavior of this routine are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a file with the destination abstract pathname already exists. The return value should always be checked to make sure that the rename operation was successful.
Syntax:
 CALL "RENAME" USING sourceFile 
Parameters:
Examples:
Example - Rename an ISAM file
call "rename" using "CUST""CUST2015", renameStatus, "I"
if renameStatus not = 0
   display message "Rename failed!"
Example - Rename an sequential file
call "rename" using "cust.list" "custJan14.list" renameStatus
if renameStatus not = 0
   display message "Rename failed!"
 

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left