Haggis
18th December 2002, 21:16
Hi

In a certain session if you want to delete anything it asks you a question first asking you to confirm this. This is exactly how we want it to run for the user. However when we run the session as an overnight job it falls over as it does not get an answer to the question asking to confirm.

Thus I was wondering, as its the same user who always runs the night time jobs, is it possible to insert the username in the program script so it skips this question if its this user?

Thanks
Haggis

NPRao
18th December 2002, 22:03
Haggis,

Thumb Rule - there should be no user interaction for the sessions to be executed during the job mode.

If its your custom sessions and you like to add code to avoid asking that question you have different options like -

if logname$ <> bsp then
| *ask question for all the users than bsp
confirm.yn = ask.enum(...)
else
confirm.yn = tcyeno.yes
endif

[or]

if not job.process then
|* session invoked in a job mode
confirm.yn = ask.enum(...)
else
confirm.yn = tcyeno.yes
endif

I hope this helps you out.

Good Luck!