AnsweredAssumed Answered

Display long String to use as a variable

Question asked by PJansen630014 on Apr 15, 2019
Latest reply on Apr 24, 2019 by PJansen630014

Hi,

 

I encounter the following problem;

 

I need a Base64 string to use as attachement for an external ticket system.

The string is larger than 8000 characters.
But some how the string is truncated to 7999 characters (32bit?!)

I made a small test to make this clear.

 

In the following example

  • /tmp/load_1000_11.pja has more then 10000 characters
  • The report only shows the first 7999 characters.

 

. ~/.bash_profile

ls -alrt /tmp/load_1000_11.pja
!cat /tmp/load_1000_11.pja

!ATTACHMENT=`cat /tmp/load_1000_11.pja`
!echo $ATTACHMENT

echo ATTACHMENT:`cat /tmp/load_1000_11.pja`

 

Running this JOBS generates the following report;
************************************************************************
** ucxjlx6m version 11.2.2+build.622 changelist 7627775 **
** JOB 01665920 (ProcID:0000017544) START AT 12.04.2019 / 11:37:09 **
** UTC TIME 12.04.2019 / 09:37:09 **
** TEXT=" Job started " **
************************************************************************
-rw------- 1 automic automic 62038 Apr 9 12:23 /tmp/load_1000_11.pja

ATTACHMENT:UGF0Y2hEYXRlO0FwcGxpY2F0aW9uO1NlcnZlcm5hbWU7QnJhbmQ7RW52aXJvbm1lbnQ7UGF0Y2hD eWNsZTtQYXRjaFdlZWs7UGF0Y2hEYXk7V2luZG93U3RhcnQ7V2luZG93RW5kCjA5LUFQUi0xOTtB UFBMSUNBVElPTlMgTUFOQUdFUjtzbG5jN3IxNDU3O0xpbnV4O1Byb2R1Y3Rpb247SGFsZiBZZWFy bHk7V0syO1R1ZXNkYXk7VHVlc2RheSwgMDktQXByaWwtMjAxOSBhdCAwMDowMDtUdWVzZGF5LCAw OS1BcHJpbC0yMDE5IGF0IDA2OjMwCjA5LUFQUi0xOTtDQjtzbGRjbHIwMDM3O0xpbnV4O1Byb2R1
...
ZXNkYXksIDEwLUFwcmlsLTIwMTkgYXQgMDA6MDA7V2VkbmVzZGF5LCAxMC1BcHJpbC0yMDE5IGF0 IDA2OjMwCjEwLUFQUi0xOTtGTVMgSElHSFVTQUdFIEFORCBGUkFVREU7c2xuYzdyMTM1NjtMaW51 eDtQcm9kdWN0aW9uO0hhbGYgWWVhcmx5O1dLMjtXZWRuZXNkYXk7V2VkbmVzZGF5LCAxMC1BcHJp bC0yMDE5IGF0IDAwOjAwO1dlZG5lc2RheSwgMTAtQXByaWwtMjAxOSBhdCAwNjozMAoxMC1BUFIt MTk7Rk1TIE1PQklFTDtsODEwMTtMaW51eDtQcm9kdWN0aW9uO0hhbGYg

************************************************************************
** ucxjlx6m version 11.2.2+build.622 changelist 7627775 **
** JOB 01665920 (ProcID:0000017544) ENDED AT 12.04.2019 / 11:37:09 **
** UTC TIME 12.04.2019 / 09:37:09 **
** TEXT=" Job ended " RETCODE=00 **
************************************************************************

In the post-processing I want to do somethin like;


:SET &LINE# = PREP_PROCESS_REPORT(,,,"ATTACHMENT:*", "COL=DELIMITER", "DELIMITER=*:*")
:PROCESS &LINE#
: SET &LOCAL_CONTENT# = GET_PROCESS_LINE(&LINE#, 2)
:ENDPROCESS
:CLOSE_PROCESS &LINE#
:PUBLISH &LOCAL_CONTENT#,, "TOP"

 

My questing is ... how can I fill the variable (&LOCAL_CONTENT#) with the complete string and not only the first 7999

 

Of course ... any other suggestion to achieve this is welcome.

 

Thanks in advance.

Outcomes