I am struggling with an include issue.
I have two scripts that both call the same include. In the first script it works fine, in the second script I get a message that says the include cannot be found. I even copied and pasted the text from the first script to the second to ensure they are the same.
My First script, which finds the include and executes it just fine starts as follows:
Include "Includes\UsageTracking\I_UsageTracker.txt"
// Display Equipment: General Data
Screen SAPMIEQ0.0101
Enter "/Menu=6,1" // Orders
My second script which complains about the include starts
Include "Includes\UsageTracking\I_UsageTracker.txt"
Parameter EQUIP_NUM
Set V[IE03*] ""
Set V[IE03_EQNUM] "&U[EQUIP_NUM]"
// Execute Notification History Report
Screen ZIR_NOTIFICATION_HISTORY_RPT.1000
Set C[Completed] "X"
Set F[Notification] ""
Set F[Notification Type] ""
Set F[Functional Location] ""
Set F[Equipment] "&V[IE03_EQNUM]"
Set F[Notification Date] ""
Set F[Notification Date to] "12/31/9999"
Enter "/8" // Execute
When I execute the second script and turn on GuiXT tracing I get the following:
CEnd of InputScript Processing "\\sgenmmq1\GuiXT\Scripts.SBX\IE03\Notif_History.txt"
CStart of InputScript Processing "\\sgenmmq1\GuiXT\Scripts.SBX\IE03\Notif_History.txt"
CStart of InputScript Processing "\\sgenmmq1\GuiXT\Scripts.SBX\IE03\Notif_History.txt"
E Include '\Includes\UsageTracking\I_UsageTracker.txt' not found
So for some reason it is not finding the include, and also seems to be trying to execute the script twice.
Any ideas why the include is found in the first script ant not the second are appreciated.
Regards