View previous topic :: View next topic
|
Author |
Message |
preethan
New User
Joined: 15 Dec 2008 Posts: 33 Location: Chennai
|
|
|
|
I have a problem with my NDM. I am trying to NDM a dataset present in region YYYYY to region XXXXX. I am trying to do with the help of jcl. When i submit the jcl from the region YYYYY, i am able to NDM the dataset. But when i do the vice versa (submitting the jcl from the region XXXXX and still trying to NDM the file from YYYYY to XXXXX), it is not NDM ing. Is there any possibility to do this ? I am developing a tool in the region XXXXX and the one of the aims of the tool is to NDM the files from YYYYY to XXXXX, without goin to the region YYYYY. I hope my question was clear.
The command which i used is
Code: |
NDM PROCESS PNODE=NDM.YYYYY -
SNODE=NDM.XXXXX -
&PDSN=AAAA.BBBB.CCCC -
&SDSN=AAAA.BBBB.CCCC
STEP1 COPY TO (DSN=&SDSN -
DISP=NEW) -
FROM (DSN=&PDSN -
DISP=SHR) |
|
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hi,
What is the error message you are getting?
The NDM job would have a process number for each transfer. You can note down this process number from the job and query it on NDM(user interface) to know what exactly is the issue. |
|
Back to top |
|
|
preethan
New User
Joined: 15 Dec 2008 Posts: 33 Location: Chennai
|
|
|
|
***** ERROR ***** - This Node
NOTE: Unable to allocate dataset
From ( Pnode
I got this error from the NDM user interface. It is trying to allocate the dataset ? The datset will be present only in the other region from where I want this file to be copied. Is there any way to do that ? Should we always submit the NDM process only from the primary node ? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hi,
Quote: |
Should we always submit the NDM process only from the primary node ? |
Im sure, transfer can be done in both ways, from both the nodes.
I don't know why the allocation failed, maybe if you could provide the complete error log of NDM, someone might be able to help you.
Just a guess,
If the error is with PNODE, then the dataset might have been in use by someother job or process.
If the error is with SNODE, you can try to manually allocate the dataset using 3.2 ISPF in SNODE and then try to receive with DISP=OLD |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
You can always try and direct your job to run on the other system without logging on to it. You need a JES control card but I forget the syntax - something like
|
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Nic,
i think its something like this
/*ROUTE XEQ nodename |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
That would be it - haven't seen it since 1989-ish hence the haziness. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
I think Nic's memory corresponds to
/*JOBPARM SYSAFF=LPAR-ID |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
The NDM Select Statistics report also includes the error code. What does quick-weference say about that? (Sorry, I learned NDM at the Elmer Fudd Institute.)
You say the dataset should exist only on YYYYY - true - but to copy it to XXXXX the receiving dataset must be ALLOCATED on XXXXX.
Duplicate name on XXXXX? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Let's go back and look at the Process. I think you need to be a bit clearer in your definition. You should identify which dataset is on which node. It appears that YYYY is considered the primary node, and XXXX the secondary node. On your COPY statement you should specify which node is FROM and which node is TO. My guess is that it should look something like:
Code: |
NDM PROCESS PNODE=NDM.YYYYY -
SNODE=NDM.XXXXX -
&PDSN=AAAA.BBBB.CCCC -
&SDSN=AAAA.BBBB.CCCC
STEP1 COPY TO(SNODE DSN=&SDSN -
DISP=(RPL,CATLG,DELETE)) -
FROM(PNODE DSN=&PDSN -
DISP=SHR)
|
Also, unless the SDSN dataset is a GDG and you're specifying a (+1) relative generation, I wouldn't use NEW. |
|
Back to top |
|
|
preethan
New User
Joined: 15 Dec 2008 Posts: 33 Location: Chennai
|
|
|
|
The copy keyword should be immediately followed by a left paranthesis. I got the above error while submitting the jcl.
I compared the statistics of the failed NDM through JCL and a successful NDM through the NDM user interface. There is only one difference.
In a well ran NDM it is like,
***** CHECKPOINTED; Interval => 10,240,000
From ( Snode
Dsn=>AAAA.BBBB.CCCC)
recs => 283 blks => 0
I/O BYTES => 150,556
VTAM BYTES => 151,688
Cmpr Perc => - 0.8%
Digital Signature enabled = No
To ( Pnode
Dsn=>AAAA.BBBB.CCCC)
recs => 283 blks => 0
I/O BYTES => 150,556
VTAM BYTES => 151,688
Cmpr Perc => - 0.8%
Digital Signature enabled = No
Merged Signature enabled = No
Merged Encryption enabled = No
In the NDM which failed the statistics is like below
***** ERROR ***** - This Node
NOTE: Unable to allocate dataset
From ( Pnode
Dsn=>AAAA.BBBB.CCCC)
recs => 0 blks => 0
I/O BYTES => 0
VTAM BYTES => 0
Cmpr Perc => 0.0%
Digital Signature enabled = No
To ( Snode
Dsn=>AAAA.BBBB.CCCC)
recs => 0 blks => 0
I/O BYTES => 0
VTAM BYTES => 0
Cmpr Perc => 0.0%
Digital Signature enabled = No
Merged Signature enabled = No
Merged Encryption enabled = No
I just learnt one difference. In my failed NDM the from node is considered as Primary NODE, whereas in a successfull NDM from node is considered as Secondary node. How can i specify that i need to copy from a secondary node ?. Any idea ?
superk wrote: |
Let's go back and look at the Process. I think you need to be a bit clearer in your definition. You should identify which dataset is on which node. It appears that YYYY is considered the primary node, and XXXX the secondary node. On your COPY statement you should specify which node is FROM and which node is TO. My guess is that it should look something like:
Code: |
NDM PROCESS PNODE=NDM.YYYYY -
SNODE=NDM.XXXXX -
&PDSN=AAAA.BBBB.CCCC -
&SDSN=AAAA.BBBB.CCCC
STEP1 COPY TO SNODE (DSN=&SDSN -
DISP=NEW) -
FROM PNODE (DSN=&PDSN -
DISP=SHR
|
Also, unless the SDSN dataset is a GDG and you're specifying a (+1) relative generation, I wouldn't use NEW. |
|
|
Back to top |
|
|
preethan
New User
Joined: 15 Dec 2008 Posts: 33 Location: Chennai
|
|
|
|
It is working fine atlast!!
A small correction in the above command. It should be like
Code: |
STEP1 COPY FROM (SNODE DSN='AAAA.BBBB.CCCC' -
DISP=SHR)-
TO (PNODE DSN='AAAA.BBBB.CCCC' -
DISP=(NEW,CATLG)) |
Thanks for all your help!! |
|
Back to top |
|
|
|