File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Retrieve am Qshell's message in batch job from CL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Retrieve am Qshell Watch "Retrieve am Qshell New topic

Retrieve am Qshell's message in batch job from CL

Eung maeng
Ranch Hand

Joined: Feb 10, 2002
Posts: 68
Does anyone had an experience to retrieve a Qshell messages('QSH0005') from batch job in CL on iseries?
I can get the message id when I execute Qshell command interactive with rcvmsg but not from batch job when submitted Qshell command?

please show how to get it. it would be good good.

Would you be able to give an idea how to retrieve an messages(QSH0005/6/7) from CL when submitted QSH command in batch? I was trying to get an idea on web site and found your article regarding qshell.

This CL is how I am trying to retrieve a message id from Qshell command when job finished in batch job.

This CL is submitted QSHELL command to execute a JAVA API.

When JAVA API completed the process, it will be returned exit code to QSHELL and QSHELL will returned an message ID(�QSH005�) to CL
when they return an �QSH0005� in batch, I need to retrieve it on CL.
When I call QSHELL Command interactive rather than in batch on CL, I can retrieve this message ID with �RCVMSG� CL command which is good, but not from in batch

IBM CL program


LINE4 SBMJOB CMD(QSH CMD('/home/ibbi_api/'))

I agree. Here's the link:
subject: Retrieve am Qshell's message in batch job from CL
It's not a secret anymore!