Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example

Assume the following:

  • getmsg.isx contains a parallel routine definition with the target filepath string to be replaced

  • u915264 is the valid datastage DataStage user that should be credited for the last save in the routine definition

  • File changeLibFileInfo.yml contains:

    Code Block
    - transform: SearchAndReplace

...

  • 
      xpath: /[contains(name(),'DSRoutineSDO')]/@modulePath

...

  • 
      searchString: /usr/local/dstage/[A-Za-z0-9_]/Routine/([A-Za-z0-9_]*).o

...

  • 
      replaceString: /usr/local/dstage/cplusplus/routines/$1.so

Then executing Executing the following command from a DOS command promptprompt…

Code Block
$> mettleci asset-transformer transform
  -isx C:\Users\

...

u915264\transmuter\getmsg.isx 
  -user

...

 u915264  
  -transforms changeStaticLibToDynamicLibFilename.yml

will …will result in this output:

Code Block
C:\Users\u915264\transmuter>mettleci asset-transformer transform -isx C:\Users\u915264\transmuter\getmsg.isx -user u915264 -transforms changeStaticLibToDynamicLibFilename.yml
MettleCI Command Line (build 118)
(C) 2018-2020 Data Migrators Pty Ltd
----------------------------------
ISX File: C:\Users\x247317a\transmuter\getmsg.isx
----------------------------------
Applying 'SearchAndReplace' transform to asset 'getmsg'
Replaced '/usr/local/dstage/TPODS/Routine/get_msg_code.o' with '/usr/local/dstage/cplusplus/routines/get_msg_code.so'
C:\Users\u915264\transmuter>

Note the message showing the target and replacement strings. Other transforms may have different will produce different, transform-specific output.

See also

Child pages (Children Display)