Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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: 6968
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: 1894
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: 1522
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us