Skip to main content

#DEMANGLE

#DEMANGLE( identifier );

identifierA valid ECL identifier label containing only letters, numbers, dollar sign ($), and underscore (_) characters.

The #DEMANGLE statement takes an identifier string and returns the string as it was before it was #MANGLEd.

Example:

  #DECLARE (mstg);
  #DECLARE (dmstg);
  #SET (mstg, #MANGLE('SECTION_STATES/AREACODES'));
  
  export res1 := %'mstg'%;
  res1;      //res1 = 'SECTION_5fSTATES_2fAREACODES'
  
  // Do some processing with ECL Valid Label name "mstg"
  
  #SET (dmstg, #DEMANGLE(%'mstg'%));
  export res2 := %'dmstg'%;
  res2; //res2 = 'SECTION_STATES/AREACODES'

See Also: #MANGLE, Attribute Names