Sergio, You already have the SPOOL and PUNCH command needed.
You also asked about the return code. z/OS batch jobs will send you a message through RSCS if you include the NOTIFY statement, either as part of the job card, something like: //jobname JOB (whatever),'S. LIMA', // MSGCLASS=A,CLASS=E,NOTIFY=vmnodeID.vmid or as a command in the JCL: /*NOTIFY vmnodeID(vmid) Obviously, replace the "vmnodeID" with your VM node ID as known to JES2 (usually matching the node ID your "SYSTEM NETID S" file), and changing the "vmid" to the userid on z/VM which should receive the job completion message from JES. This appears right on your screen, similarly to the message that appears from a CP MSG command. To cause JES2 job logs to be sent to both z/OS JES2 and also a copy sent to z/VM we use the JCL statements: //ZOS OUTPUT JESDS=ALL,DEST=mvsnode.LOCAL //ZVM OUTPUT JESDS=ALL,DEST=vmnodeID.vmid In your case, change the 'mvsnode' to JESZOS, and the 'vmnodeID' to your VM NODEID, and the 'vmid' to your target VM userid. Mike Walter Aon Corporation The opinions expressed herein are mine alone, not my employer's. "Sergio Lima" <sergiovm...@hotmail.com> Sent by: "The IBM z/VM Operating System" <IBMVM@LISTSERV.UARK.EDU> 12/21/2010 01:34 PM Please respond to "The IBM z/VM Operating System" <IBMVM@LISTSERV.UARK.EDU> To IBMVM@LISTSERV.UARK.EDU cc Subject Re: How Sumbit a JOB from Z/VM to Z/OS using RSCS ? Hello, Mark and Michael. Thanks very much for your help. We will teste here. Regards Sergio Date: Tue, 21 Dec 2010 14:01:13 -0500 From: pacemainl...@gmail.com Subject: Re: How Sumbit a JOB from Z/VM to Z/OS using RSCS ? To: IBMVM@LISTSERV.UARK.EDU My exec I also have the keyword JOB on the TAG CP TAG DEV 00D N1 JOB On Tue, Dec 21, 2010 at 1:39 PM, Michael Coffin <michaelcof...@mccci.com> wrote: I?m not a z/OS?er, but thinking back many, many years I?m pretty sure to submit the file from CMS: CP SPOOL PUN TO RSCS CP TAG DEV PUN JESZOS PUNCH cmsfile (NOHEADER To route the output back to your VM node I think you use ROUTE PRINT, so for example to route the output to MAINT at MYVM1 something like: // ROUTE PRINT MYVM1.MAINT I?m probably wrong on at least one count, hopefully the z/OS?ers will step in and correct my mistakes ? but at least it gives you a starting point. :) -Mike From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Sergio Lima Sent: Tuesday, December 21, 2010 1:02 PM To: IBMVM@LISTSERV.UARK.EDU Subject: How Sumbit a JOB from Z/VM to Z/OS using RSCS ? Hello List, We have configured here , a node named JESZOS, defined on ZOS/1.12, and have another node named RSCS defined under Z/VM5.4. How can i submit a JOB from Z/VM to Z/OS, and received the return in our CMS MACHINE? Thanks Sergio Lima Costa Sao Paulo - Brazil -- Mark D Pace Senior Systems Engineer Mainline Information Systems The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. All messages sent to and from this e-mail address may be monitored as permitted by applicable law and regulations to ensure compliance with our internal policies and to protect our business. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. You are deemed to have accepted these risks if you communicate with us by e-mail.