View previous topic :: View next topic
|
Author |
Message |
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
Hi,
We have 2 mainframe's Say X and Y and as a part of batch cycle execution We execute some jobs in "Y" XMIT (transfer) some data in the form of seq file from "Y" to "X". Later go and submit some jobs in "X" which uses this file.
Now the problem i am facing in automating this process is i dont know how to execute jobs in mainframe "X" from Mainframe "Y" and get back status.
Basically i am trying to find a way where i can trigger a process thru rexx which subit jobs in some other mainframe and get back job status.
Please let me know if any of you faced this issue or any other ideas to solve this problem. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
FTP?
/*ROUTE XEQ?
NJE or RJE?
Connect:Direct (NDM)? |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
I am sorry superk i did not get your point, i guess u r asking me what we are using to transfer data between mainframe, in general to manually transfer data i use XMIT userid.dsn('xxx').
Can you explain how to use ftp or some thing else to trigger jobs in some other mainframe?
Please let me know if u need further info. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Can you explain how to use ftp or some thing else to trigger jobs in some other mainframe? |
You don't trigger jobs on the other mainframe using FTP -- you submit them. Use SITE FILETYPE=JES and you can FTP directly into the JES spool so the job runs on the other mainframe.
Kevin was giving you some of the ways a job can be submitted from one machine to another -- which you use depends largely on the details of what you want to do. |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
Hi Robert,
Thanks for correcting me, can you help me with a sample jcl to do this task or direct me where i can get this info in detail.
Thanks& Regards,
Surya |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Find the IBM Communications Server User's Guide for your release of z/OS and review the FTP information. Check out the SITE FILETYPE=JES command in particular. If you don't have local access to this manual you can find it at the IBM web site, as usual. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I usually use the /*ROUTE XEQ method |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
As suggested by expat i tried using /*ROUTE XEQ XXXX(NODE) AFTER JOB CARD but i am getting a error stating
"REMOTE JOB CARD NOT FOUND"
can any one help me with this as i am not sure why i am getting this error? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
May be showing the "actual" code would fetch better replies.. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And the actual error code shown in the messages |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Let's start with some basics -- are you using JES2 or JES3? What's the node names for the machines you're calling X and Y in your original post? |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
I am using JES3
Nodes are: TORGPC AND SYGMA1
Initially i got the following error message
IAT6176 REMOTE JOB CARD NOT FOUND
//DELTETMP EXEC PGM=IEFBR14
IRR010I USERID XXXXXXX IS ASSIGNED TO THIS JOB.
Later after reading the manul i include a new job card and used NJB instead of JOB for 2nd job card and after execution i started getting a new error as follows:
BSSM080 XXXXXXX IS THE SUBMITTER USERID
ICH408I USER(XXXXXXX ) GROUP(ABCDEFG ) NAME(SUPPORT TEAM )
LOGON/JOB INITIATION - INVALID GROUP
I am assuming I might not have enough authorization to execute this task, please let me know is my understanding is correct?
Let me know in case if you guys need any more info. |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
If you are looking for actual code here it is:
//JJJOB1 JOB (TEST),'SAMPLE JOB',MSGCLASS=7,NOTIFY=&SYSUID
//*ROUTE XEQ TORGPC
//JJJOB2 NJB (TST1),'SAMPLE JOB',MSGCLASS=7,NOTIFY=&SYSUID
//*************************************************
//ALLOCTM2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=TSPQR.SURYA.OUTPUT.TEST,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=TSO,SPACE=(TRK,(1,1),RLSE) |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the manual, I believe this (untested) code should work:
Code: |
//JOBNAME1 JOB ...
//*ROUTE XEQ SYGMA1
//JOBNAME2 JOB ...
.
.
.
//
|
But I can't really test this at our site so I can't say for sure if the JCL is good. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Should not this
has a single "/", such as
. |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
It seems your JCL is correct.
Quote: |
ICH408I USER(XXXXXXX ) GROUP(ABCDEFG ) NAME(SUPPORT TEAM )
LOGON/JOB INITIATION - INVALID GROUP |
Code: |
ICH408I LOGON/JOB INITIATION - INVALID GROUP
You attempted to log on to TSO or submit a batch job
using a group ID that is not defined to RACF. If the
group ID was misskeyed, correct it and retry the
request, otherwise contact the Security Administrator
to obtain an appropriate group ID. |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj -- JES2 uses /*ROUTE while JES3 uses //*ROUTE. |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
I think //*ROUTE is correct for JES3 after doing some research on the error i am getting, Here is the explanation i found in IBM manual
"INVALID GROUP The user tried to log on or to initiate a job using a group that the user is not a member of. "
Based on this i went back and seen the RACF permission i am having
I belong to A9ZGDEV in SYGMA1
and A9ZDEVG in TORGPC
So i guess when i am trying to submit the job from SYGMA1 it is using that group id when submitting job in TORGPC. Please let me know is my understanding correct? if so is there any other way to over come this problem? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I believe your understanding is correct. Try using GROUP=A9ZDEVG on your second job card (your may need the user id and password as well but try just the group first). |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
Robert after adding GROUP in job card it is working fine now as expected.
I have one more question related to this how to capture the status of the job executed in different region. The idea is once the job completes successfully in other region, i need to capture that info and execute some other jobs in the present region. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear the job is working. I'm not sure about capturing job status; you may want to review the JES3 commands in the JCL manual to see if there's anything that will do what you want. Is there a scheduling package at your site that can capture this data, perhaps? |
|
Back to top |
|
|
karisurya
New User
Joined: 02 Aug 2007 Posts: 64 Location: Bangalore
|
|
|
|
Let me correct my self after doing some testing here are my observations regarding job status
In JES3 we have 2 job cards
1) 1st Which will be executed in current region
2) 2nd which will be executed remotely
As per my observation Once the 2nd Job completes remote execution all of that job information is comming into 1st job IOF.
So as per my understanding in order to check the status of the remotely executed job i guess its enough if we check the status of the 1st job which got executed in current region.
Please correct me if my observation are wrong.
I really appreciate all your effort and time.
Thanks&Regards
Surya |
|
Back to top |
|
|
|