Hi all ,
I am calling a program called "SNDBRK" located in library "SARKNS" .
Like this -------->>>> SBMJOB CMD(CALL PGM(SARKNS/SNDBRK))
this program will send a break message to all the workstation users by this following command.
PGM
SNDBRKMSG MSG(' PLEASE SIGNOFF YOUR SYSTEMS FOR +
POSTING ') TOMSGQ(*ALLWS)
ENDPGM
When I will call Sarkns/sndbrk directly from pdm screen it will send message to all the workstation users, but submitting with sbmjob ln the above it is not sending message to the users .
What went wrong ?
let me know the reason ?
Software/Hardware used:
BATCH SUBMISSTION PROBLE
ASKED:
February 4, 2010 8:19 AM
UPDATED:
February 9, 2010 6:10 AM
Hi
I think you should send th job log to us as well because this will give you the exact config of your machine…….and possible errors…..
Hi
I think this will help
Display Command Information
Command . . . . . . . : SNDBRKMSG Library . . . . . . . : QSYS
Program to process command . . . . . . : QMHSNBRK
Library . . . . . . . . . . . . . . : QSYS
State used to call program . . . . . : *SYSTEM
Source file . . . . . . . . . . . . . : S000039796
Library . . . . . . . . . . . . . . : QTEMP
Source file member . . . . . . . . . . : SNDBRKMSG
Validity checking program . . . . . . : *NONE
Mode(s) in which valid . . . . . . . . : *PROD
*DEBUG
*SERVICE
Where allowed to run . . . . . . . . . : *IMOD *BMOD *IREXX
*BREXX *BPGM *IPGM
*EXEC *INTERACT *BATCH
Allow limited user . . . . . . . . . . : *NO
Maximum positional parameters . . . . : 3
Check mode….
Devan
Check mode….
For what?
We need to see the joblog for the submitted job to see what wasn’t working. Of course, if a joblog was available, the OP could also read it to see what was wrong.
Tom
Look at the API QMHCTLJL.. We do this all the time
Look at the API QMHCTLJL.
In the case of this question, what for? It’d be far easier just to change the job description to generate a spooled joblog assuming one isn’t being generated now. We don’t know that one isn’t available; we only know that the OP isn’t responding to us.
Apparently the problem isn’t very important, or it was solved and we aren’t being told about it.
Tom
Thanks you one and all .
Now it is working , because of Session defaults .
I have changed the defaults like
Run in batch (Yes).
After this it is working properly .
Thnak you my dear friends.