IFS - add file to the folder during a save-while-active operation

By kimot, 8 December, 2023

If you are experiencing problem that files cannot be added into IFS folder during save-while-active backup. There is a settings that can help you.

*ALWCKPWRT
If the object is a stream file, indicates whether the stream file can be shared with readers and writers during save-while-active checkpoint processing.  If the object is a directory, indicates whether links can be added, removed, or renamed in the directory during a save-while-active operation.
Changing this attribute's current value may cause unexpected results.  Please refer to the Recovering your system book, SC41-5304 for details on this attribute.                      
                                       
Allowed values for the VALUE parameter are:                   
*YES        If the object is a stream file, it can be shared with readers and writers during save-while-active checkpoint processing.  If the object is a directory, links can be added, removed, or renamed in the directory during a save-while-active operation.                                        
*NO         If the object is a stream file, it can be shared with readers only during save-while-active checkpoint processing.  If the object is a directory, links can not be added, removed, or renamed in the directory during a save-while-active operation.                                        

In WRKLNK command you can use this option to display Allow write during save
8=Display attributes

                              Display Attributes                          
                                                                          
Object . . . . . . :   /IDAT120/SFTP_TRF                                  
                                                                          
Object domain  . . . . . . . . . . . . :   *SYSTEM                        
                                                                          
Number of hard links . . . . . . . . . :   2                              
                                                                          
Create object auditing . . . . . . . . :   *SYSVAL                        
Create object scanning . . . . . . . . :   *YES                           
                                                                          
Set effective user ID  . . . . . . . . :   No                             
Set effective group ID . . . . . . . . :   Yes                            
Restricted rename and unlink . . . . . :   No                             
                                                                          
Allow write during save  . . . . . . . :   Yes                            
Inherit allow checkpoint writer  . . . :   No                             
Can be saved . . . . . . . . . . . . . :   Yes                            
  System restricts save  . . . . . . . :   No                             

Actual value can be changed
13=Change attribute

                           Change Attribute (CHGATR)               
                                                                   
Type choices, press Enter.                                         
                                                                   
Object . . . . . . . . . . . . . OBJ          > '/path/folder'
Attribute  . . . . . . . . . . . ATR            *ALWCKPWRT         
New value  . . . . . . . . . . . VALUE          *YES               
Directory subtree  . . . . . . . SUBTREE        *NONE              
Symbolic link  . . . . . . . . . SYMLNK         *NO                

If this option is used on directory you should be allowed to add files in it during save operation. If option is used on stream file you should be allowed to write into this file during save operation.
You should check if Save While Active option is set to *YES on relevant Backup Item.

                                 Weekly   Retain Save     SWA                  
     Backup     List ASP         Activity Object While    Message    Sync      
Seq  Items      Type Device      SMTWTFS  Detail Active   Queue      ID        
                                                                               
  10 *EXIT                       *******                                       
  20 *ALLUSR         *SYSBAS     FIIIIII  *YES   *LIB     SAVMSGQ    *NONE     
  30 LINKSRV    *LNK *ALLAVL     FIIIIII  *YES   *YES     SAVMSGQ    *NONE