The CONCAT macro concatenates specified data and stores the result in a variable.
Parameters: CONCAT Macro
Specifies the data that you want to concatenate. The data can contain text and variables separated by spaces, which may either be preserved or be removed during concatenation depending on the value in the Preserve Blanks field. The result cannot be more than 256 characters. Excess characters are truncated.
Specifies whether the spaces entered in the Data field should be preserved or removed during concatenation.
Specifies the name of the variable that contains the result of the concatenation.
Example: CONCAT Macro
In the following example, the CONCAT macro creates the &SRCHKEY variable, which contains the value 55LOCNx, where x is the value of the &LOCATION variable:
PROD----- Automation Services : CONCAT Macro Parameter Definition ----------- Command ===> Function=BROWSE .- Data to be Concatenated ---------------------------------------------------. | | | Enter data to be concatenated below. Data can contain variables and/or | | text separated by blanks. | | | | Data ....... 55 LOCN &LOCATION | | | | | | Preserve blanks ... NO (YES or NO) | | | | Notes: Blanks within variables are always preserved. | | The created variable has a maximum length of 256 characters. | | Excess characters will be truncated and a warning message logged. | '-----------------------------------------------------------------------------' .- Variable to be Created ----------------------------------------------------. | | | Variable Name ..... SRCHKEY | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=Exit F9=Swap
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |