Using the substring function

Use the Substring Qualifier function to customize substring parameters.

On the Offload DSN Specification panel, choose the Substring Qualifier function.

Figure 1. Substring Parameters panel (BSY$OSTR)
        Substring Parameters          
   BSY$OSTR                              
   Enter the Qualifier Code ==>        
   Enter Starting Position  ==>        
   Enter Substring Length   ==>        
                                       

On the Substring Parameters panel, you can specify almost any of the qualifier codes and specify the string's starting position and length. For example, qualifier code 3 generates a string of &SSID, a four-character subsystem name. However, if your site uses three-character SSIDs, you can specify option 24 to specify the SSID and customize the string length, as follows:

Figure 2. Substring Parameters panel (BSY$OSTR): Customization example
        Substring Parameters         
   BSY$OSTR                              
   Enter the Qualifier Code ==> 3      
   Enter Starting Position  ==> 1      
   Enter Substring Length   ==> 3      
                                       

An example of the results is shown in the following panel:

Figure 3. LP Offload DSN Specification panel (BSY$OFF3): Using the substring function
 BSY$OFF3  V2R2 ------ LP Offload DSN Specification ------ 2021/11/11  14:27:39 
 Option   ===>                                                                  
 -------------------------------------------------------------------------------
  Creator: CSTSUK     Name: DFSMSDSS BACKUP METHOD           SSID: I9A2         
  Share Option: U  (Upd,View,No)    Description: DFSMSDSS BACKUP METHOD         
 -------------------------------------------------------------------------------
 Enter codes to create a dataset name specification:                            
  Qualifier code  ==>     Free form literal  ==>             Show DSN  ==> N    
                                                                                
  Current dataset name qualifier string:                                        
 &SSID(1,3).                                                                    
                                                                                
 Valid dataset name specification codes are:                                    
  1. Volser              9. Day (DD)           17. Backup Type (#18.#19)        
  2. *Reserved*         10. Julian Day (DDD)   18. Local/Recovery (L/R)         
  3. Subsystem ID       11. Hours (HH)         19. Primary/Backup (P/B)         
  4. User ID            12. Minutes (MM)       20. Job Name                     
  5. Time (HHMMSS)      13. Seconds (SS)       21. Step Name                    
  6. Date (YYYYDDD)     14. Timestamp          22. Profile Creator              
  7. Year (YYYY)        15. Random Number      23. Profile Name                 
  8. Month (MM)         16. GDG (+1)..(+n)     24. Substring Qualifier          
                                               25. Use freeform literal