In cases where an RSCS/NJE configuration is not available, this can be also
accomplished using the z/OS FTP JES interface:

(from CMS)

ftp .zoshostname.com
VM TCP/IP FTP Level 610
Connecting to x.x.x.x, port 21
220-FTPD1 IBM FTP CS V1R12 at ZOSHOSTNAME.COM, 16:01:38 on ...........
220 Connection will close if idle for more than 5 minutes.
USER (identify yourself to the host):
sysprg1
<-----#*#*#*#*#*#*#*#*#*#*#*#*#*#----- Batch jobs will be submitted with
this userid unless overridden in the z/OS jobcard
>>>USER sysprg1
331 Send password please.
Password:
xxxxxxxxx
>>>PASS ********
230 SYSPRG1 is logged on.  Working directory is "SYSPRG1.".

Command:
SITE FILETYPE=JES          <-----#*#*#*#*#*#*#*#*#*#*#*#*#*#----- Request
the z/OS FTP Server to use the JES2 interface
>>>SITE FILETYPE=JES
200 SITE command was accepted

Command:
put mvs1.job
<-----#*#*#*#*#*#*#*#*#*#*#*#*#*#----- "Submit" the batch job contained in
CMS file "MVS1 JOB"
>>>SITE FIXrecfm 80
200 SITE command was accepted
>>>PORT x.x.x.x,4,2
200 Port request OK.
>>>STOR mvs1.job
125 Sending Job to JES internal reader FIXrecfm 80
250-It is known to JES as JOB00683
<-----#*#*#*#*#*#*#*#*#*#*#*#*#*#-----  This is the JES2 JOBID
250 Transfer completed successfully.
246 bytes transferred in 0.014 seconds. Transfer rate 17.57 Kbytes/sec.

Command:
dir
<------#*#*#*#*#*#*#*#*#*#*#*#*#*#---- When running in JES mode, the 'dir'
command returns the list of jobs on spool owned by the logged in userid
(Format of output depends on the JESINTERFACELEVEL setting in ftp.data)
>>>PORT x.x.x.x,4,8
200 Port request OK.
>>>LIST
125 List started OK for JESJOBNAME=SYSPRG1*, JESSTATUS=ALL and
JESOWNER=SYSPRG1
JOBNAME  JOBID    OWNER    STATUS CLASS
SYSPRG1T JOB00683 SYSPRG1  OUTPUT A        RC=0000 3 spool files
SYSPRG1T JOB00682 SYSPRG1  OUTPUT A        RC=0000 3 spool files
SYSPRG1  TSU00650 SYSPRG1  OUTPUT TSU      ABEND=622 3 spool files
SYSPRG1  TSU00680 SYSPRG1  ACTIVE TSU
250 List completed successfully.

Command:
get JOB00683.x job00683.out      <------#*#*#*#*#*#*#*#*#*#*#*#*#*#----
Retrieve all the SYSOUT files for JOB #683 into CMS file job00683.out
>>>PORT x.x.x.x,4,3
200 Port request OK.
>>>RETR JOB00683.x
125 Sending all spool files for requested Jobid
250 Transfer completed successfully.
2324 bytes transferred in 1.019 seconds. Transfer rate 2.28 Kbytes/sec.
Command:
quit



Thanks,

Hank Calzaretta
z/VM and Linux on System z Specialist
IBM STG Lab Services and Training



|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Sergio Lima <[email protected]>                                        
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |12/21/2010 12:03 PM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |How Sumbit a JOB from Z/VM to Z/OS using RSCS ?                              
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |The IBM z/VM Operating System <[email protected]>                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





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

Reply via email to