View previous topic :: View next topic
|
Author |
Message |
Mohan2912
New User
Joined: 22 Aug 2011 Posts: 2 Location: India
|
|
|
|
Hi,
I need to pick up a file from one node and drop the same file to another node. For this i need to run two steps in JCL. Recieve and send. But the problem is after recieve step JCL will give a return code of 0 but the file may not be transferred completely. So in order to run the second step, the file should be trasferred. Is there a way to find whether the file is physically transferred? Will MAXDELAY=UNLIMITED help?
Thanks. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
from what I can understand:
you have 3 nodes.
1 (A) has the file
2 (B & C)need the file.
why not send from 1 to the other 2?
it is not like you are moving from A to B to C
you are copying from A to B & C.
why are you making the copy from A to C, dependent on the copy from A to B?
and this: MAXDELAY=UNLIMITED
is typical pc dog-poop. keeping a job active
(thus using resources that could be used by other jobs that are ready to go)
so that it can invoke a second step,
that is dependent on a service invoked by the first step, not the completeion of the first step,
indicates that you have no idea how mainframe computers work. |
|
Back to top |
|
|
Mohan2912
New User
Joined: 22 Aug 2011 Posts: 2 Location: India
|
|
|
|
Dick,
I can very well send from A to both B & C if the interface is designed so. Our application acts like a post man to pick and drop the file. A cannot drop the file to C. That is the constraint.
Now, I have 2 steps in my JCl
1. Picks
2. Drops.
Do u think MAXDELAY will help in making sure file is copied from A to B? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
sounds like a question your ops-support group can answer
better than me. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Why not make the 'drop' a second job that would be submitted by the scheduler on arrival of the dataset at B? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
You could try the NDM procs,
Below is a sample,
Code: |
SOMENAME PROCESS PNODE=NODEA SNODE=NODEB
COPY010 COPY FROM (DSN=DATASET.BEING.TRANS.FERRED -
DISP=SHR) -
TO (SNODE DSN=DATASET.BEING.TRANS.FERRED -
DISP=(OLD,KEEP,KEEP)) -
COMPRESS EXTENDED
IF (COPY010 EQ 0) THEN
STEP020 RUN JOB (DSN=PDS.CONTAINING.SENDING.JOB.FROM.BTOC(MEMBER)) SNODE
EIF |
*untested. Also I am not sure if the above PROC step STEP020 would wait till the transfer is complete. Don't have NDM to test it :S
COPY010 - TRANSFERS THE FILE.
STEP020 - RUNS A JCL ONCE TRANSFER IS COMPLETE.
PDS.CONTAINING.SENDING.JOB.FROM.BTOC(MEMBER) has to contain another JCL which has an NDM step to send from B to C. |
|
Back to top |
|
|
|