Anyone get this error LR VUGEN RTE protocol TE_type failed : text longer than 132 characters

  • Questions
  • Anyone get this error LR VUGEN RTE protocol TE_type failed : text longer than 132 characters
Question ID: 104953
1
0

Using LR Vugen version 11.0 latest patch. I am trying to pass a value using the Terminal emulator protocol on an IBM as400 system. The value is 180 characters long and I am getting an error during the run. Script compiles just find. any suggestions?

Script Snippet:
TE_set_cursor_pos(07, 18);
***TE_type("PGMRTOOLS/RUNSQL REQUEST(‘CALL USP_VOYAGE_PROMOTION_SUMMARY_GET("Y","Y","R","{ShipCode}","{Saildate}","{Saildate}",’*’,’*’,’*’,’*’,’0′,’0′,’,’,’)’)");***

lr_start_transaction("CALL COMMAND SUBTRACT");
TE_type("");
//TE_wait_sync();
lr_end_transaction("CALL COMMAND SUBTRACT", LR_AUTO);

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on April 8, 2013 7:38 pm
16 views
Answers (2)
1
Private answer

Your error is caused by the need to use a slash before the literals in you quoted string. For Example: TE_type(''PGMRTOOLS/RUNSQL REQUEST('CALL USP_VOYAGE_PROMOTION_SUMMARY_GET(\''Y\'',\''Y\'',\''R\'',\''{ShipCode}\'',\''{Saildate}\'',\''{Saildate}\'',\'',\'',\'',\'','0','0',',',')')'');

If any part of the string you are sending contain a literal, the literal must be proceeded with a ''\'' character.

Marked as spam
Posted by (Questions: 23, Answers: 4)
Answered on April 10, 2013 1:58 pm
1
Private answer

Hi Gizmo, Thanks for the answer... Still getting same issue/error. TE_type(''PGMRTOOLS/RUNSQL REQUEST('CALL USP_VOYAGE_PROMOTION_SUMMARY_GET(''Y'',''Y'',''R'',''{ShipCode}'',''{Saildate}'',''{Saildate}'','*','*','*','*','0','0',',',')')'');

Action1.c(5): Error: TE_type failed : text longer than 132 characters: PGMRTOOLS/RUNSQL REQUEST('CALL USP_VOYAGE_PROMOTION_SUMMARY_GET(''Y'',''Y'',''R'',''AL'',''1131229'',''1131229'','*','*','*','*','0','0',',',')')
Aborting RTE vuser.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Answered on April 10, 2013 4:39 pm