﻿Parameter text

// SAP Easy Access 
Screen SAPLSMTR_NAVIGATION.0100

// Create a new session in the IBM cloud
callvb WatsonWithGuiXT_Csharp.Form1.testWatson_createsession

// Send the user input to the API
callvb result_v = WatsonWithGuiXT_Csharp.Form1.testWatson_sendtext "&U[text]"

// Copy the result to a text variable
set text[result] "&V[result_v]"

// Save the result as a file
copytext  fromtext="result" tofile="includeme.txt"

// Execute the script
Enter "?" process="includeme.txt"


