IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Transfer file from node to mf and thento another node by ndm


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mohan2912

New User


Joined: 22 Aug 2011
Posts: 2
Location: India

PostPosted: Mon Aug 22, 2011 3:34 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 22, 2011 4:04 pm
Reply with quote

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
View user's profile Send private message
Mohan2912

New User


Joined: 22 Aug 2011
Posts: 2
Location: India

PostPosted: Mon Aug 22, 2011 4:10 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 22, 2011 4:16 pm
Reply with quote

sounds like a question your ops-support group can answer
better than me.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Aug 23, 2011 12:25 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Aug 23, 2011 11:03 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top