Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

PAD (string padding)


PAD instruction in combination with LENGTH allows to expand string variable with the spaces at the end to the desired string length.

Syntax 

PAD <variable> TO LENGTH <nn>

where

  • variable is the name of a variable or array element to be padded with the spaces
  • nn is the length of the variable after command execution.

Example

SET &STR = 'TEXT'                  --> &STR has length of 4 characters
PAD &STR TO LENGTH 10              --> &STR has length of 10 characters and its value is 'TEXT      '

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Monitor for CICS 7.4