Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Transfer file from node to mf and thento another node by ndm
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    Post subject:
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    Post subject:
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    Post subject:
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: 1750
Location: UK

PostPosted: Tue Aug 23, 2011 12:25 am    Post subject:
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: 1474
Location: Chennai

PostPosted: Tue Aug 23, 2011 11:03 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us