I am trying to change the date format from 09/20/2020 to 20200920. I am using the following in order and it get the data the way I want it but once it leaves the branch the variable is gone… By gone I mean it isnt there any longer. data for is an xml.
In a separate branch -
create file = xmlget(‘/Participants[1]/Participant[1]/ChgDate[1]’,Value,KeepCase,NoTrim)
change emulation = line printer
advance search and replace = /
set job infos and variables = %6 = @(1,1,1,5,8,KeepCase,NoTrim)@(1,1,1,1,2,KeepCase,NoTrim)@(1,1,1,3,4,KeepCase,NoTrim)
change emulation = xml
output = delete
I see my variable is created the way I want it but then when it goes back to the main branch and finishes going through the process the variable disappears.
I know it must be something simple but I can not figure out why the %6 variable disappears. I only need the date format like that to use in the file name output.