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

Using NDM to tranfer file within the same region


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

New User


Joined: 18 May 2012
Posts: 11
Location: India

PostPosted: Fri May 18, 2012 5:49 pm
Reply with quote

Hi! I have created a sample job that uses ndm to transfer file from one region to the other( i.e. from test to production). As currently we have not been provided access to production region , just to check whether it runs , I modified the job to transfer file within the same region(i.e. from test to test) where the file will be given some different name(i.e. original file name is unload1 and target file name is unload2) . After running the job , no error is shown but the target file(i.e. unload2) is not getting created. Just want to clarify whether ndm allows this ?? If it allows it , then what can be the reason behind the file not getting created ??
Thanks in Advance !!!
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Fri May 18, 2012 6:27 pm
Reply with quote

Any chance there might have been some messages issued?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri May 18, 2012 6:28 pm
Reply with quote

maybe if you showed us the control cards used,
we can point to the parameter about which you need education.

just a question,
WTF use NDM to transfer (copy a file from one dsn to another?)
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri May 18, 2012 6:55 pm
Reply with quote

NDM allows you to specify the same system as both the PNODE and SNODE.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri May 18, 2012 7:07 pm
Reply with quote

superk wrote:
NDM allows you to specify the same system as both the PNODE and SNODE.


I know that, that is why I want to see the control cards.
he obviously did not set them up correctly.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Fri May 18, 2012 7:10 pm
Reply with quote

nobody here but us mice
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri May 18, 2012 7:42 pm
Reply with quote

Quote:
nobody here but us mice
Frank's rats have left the buildling already?
Back to top
View user's profile Send private message
shailesh.pawar

New User


Joined: 18 May 2012
Posts: 11
Location: India

PostPosted: Mon May 21, 2012 9:10 am
Reply with quote

I have used following Control Cards :

SIGNON NETMAP=SYSS.NDM.NETMAP -
ESF=YES
SUBMIT DSN=XXXXX.XXX.DATALIB(VLD1TRNS) -
PNODE=ADC1 SNODE=ADC1 -
HOLD=NO -
&FROMDISP=SHR -
&DSN1=XXXXX.XXX.TBXXX.UNLOAD1 -
&DSN2=XXXXX.XXX.TBXXX.UNLOAD3
SIGNOFF

Where VLD1TRNS contains the code :

PROC1 PROCESS PNODE=ADC1 -
SNODE=ADC1
STEP1 COPY TO (SNODE DSN=&DSN2 DISP=NEW) -
FROM (PNODE DSN=&DSN1)
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon May 21, 2012 4:16 pm
Reply with quote

As I asked a long long time ago (but in this galaxy):
Quote:
Any chance there might have been some messages issued?


Even though you say no "error" is shown, aren't there still messages?
Back to top
View user's profile Send private message
shailesh.pawar

New User


Joined: 18 May 2012
Posts: 11
Location: India

PostPosted: Mon May 21, 2012 4:25 pm
Reply with quote

The job gets completed with maxcc = 0 .I observed logs using jhs , there too it does not show any messages that indicate failure of the process !!!
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon May 21, 2012 4:29 pm
Reply with quote

Right - 2nd time you said no "error" messages. I believe you.

ANY messages?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon May 21, 2012 4:30 pm
Reply with quote

What does the Connect:Direct Select Statistics Report say?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


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

PostPosted: Mon May 21, 2012 4:32 pm
Reply with quote

NDM step writes the details of the transfer to //SYSPRINT DD I think OR //NDMLOG.(Dont have NDM to test it now)

Let us know the messages inside them.
Back to top
View user's profile Send private message
shailesh.pawar

New User


Joined: 18 May 2012
Posts: 11
Location: India

PostPosted: Mon May 21, 2012 4:42 pm
Reply with quote

Messages from DMPRINT :

SCIB006I SIGNON COMMAND (CONDENSED) => USERID /NODE = XXXXXXX / ADC1
SCIC000I Connect:Direct - RC=00000000 MSG=SAFA000I NODE=ADC1
SHORT TEXT => SAFA000I Connect:Direct SIGNON process completed.
SCIB007I
COMMAND => SUBMIT DSN=XXXXX.XXX.DATALIB(VLD1TRNS)PNODE=ADC1 SNODE=ADC1 HOLD=NO &FROMDISP=SHR &DSN1=XXXXX.XXX.XXXXX.UNLOAD1 &DSN2=XXXXX.XXX.XXXXX.UNLOAD3
SCIC000I Connect:Direct - RC=00000000 MSG=SSPA001I NODE=ADC1
SCIB009I SUBMITTED PROCESS NUMBER 00034436
SHORT TEXT => SSPA001I Submit process successful
SCIB007I COMMAND => SIGNOFF
SCIC000I Connect:Direct - RC=00000000 MSG=SVTA003I NODE=ADC1
SHORT TEXT => SVTA003I Interactive user has been logged off.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


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

PostPosted: Mon May 21, 2012 4:46 pm
Reply with quote

This might sound silly, but can you try DISP=(NEW,CATLG,DELETE)
instead of DISP=NEW.. worth a shot.
Back to top
View user's profile Send private message
shailesh.pawar

New User


Joined: 18 May 2012
Posts: 11
Location: India

PostPosted: Mon May 21, 2012 4:48 pm
Reply with quote

Messages from NDMCMDS :

04:04:34.35 SCANNING FOR CASE KEYWORD
04:04:34.35 LENGTH OF STRING: 40
04:04:34.35 STRING BEING SCANNED: SIGNON NETMAP=SYSS.NDM.NETMAP ESF=YES
04:04:34.35 SIGNON COMMAND FOUND
04:04:34.35 GLOBAL DEFAULT SAYS FOLD (CASE=NO)
04:04:34.35 CD/API VER.RLSE.MOD= 50,000 PUT LEVEL=0000
04:04:34.35 API NETMAP = SYSS.NDM.NETMAP
04:04:34.56 RESETTING CASE FLAGS
04:04:34.58 SCANNING FOR CASE KEYWORD
04:04:34.58 LENGTH OF STRING: 152
04:04:34.58 STRING BEING SCANNED:
SUBMIT DSN=XXXXX.XXX.DATALIB(VLD1TRNS) PNODE=ADC1 SNODE=ADC1 HOLD=NO &FROMDISP=SHR &DSN1=XXXXX.XXX.XXXXX.UNLOAD1 &DSN2=XXXXX.XXX.XXXXX.UNLOAD3
04:04:34.58 GLOBAL DEFAULT SAYS FOLD (CASE=NO)
04:04:34.62 SCANNING FOR CASE KEYWORD
04:04:34.62 LENGTH OF STRING: 100
04:04:34.62 STRING BEING SCANNED:
STEP1 COPY TO(SNODE DSN=XXXXX.XXX.XXXXX.UNLOAD3 DISP=NEW) FROM(PNODE DSN=XXXXX.XXX.XXXXX.UNLOAD1)
04:04:34.62 GLOBAL DEFAULT SAYS FOLD (CASE=NO)
04:04:34.62 DMCBCOPY D1DDSN SET BLKSIZE=
04:04:34.62 DMCBCOPY D1NCP=... D1FLAG7=00
04:04:34.62 RESETTING CASE FLAGS
04:04:34.63 SCANNING FOR CASE KEYWORD
04:04:34.63 LENGTH OF STRING: 6
04:04:34.63 STRING BEING SCANNED: PEND
04:04:34.63 GLOBAL DEFAULT SAYS FOLD (CASE=NO)
04:04:34.63 RESETTING CASE FLAGS
04:04:34.64 RESETTING CASE FLAGS
04:04:34.66 SCANNING FOR CASE KEYWORD
04:04:34.66 LENGTH OF STRING: 9
04:04:34.66 STRING BEING SCANNED: SIGNOFF
04:04:34.66 GLOBAL DEFAULT SAYS FOLD (CASE=NO)
04:04:34.66 API NETMAP = SYSS.NDM.NETMAP
04:04:34.70 RESETTING CASE FLAGS
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon May 21, 2012 4:59 pm
Reply with quote

you need to find the 'messages' from the PROCESS NUMBER 00034436
which will not be in your job.

you are getting an rc=0 based on the fact that you have a syntax error-free
submit.

the actual work is done by the NDM started task which received your request for transfer,
and logged it as PROCESS NUMBER 00034436.

you have not shown us the info for the ndm proccing of PROCESS NUMBER 00034436
which again, will not be found in your job.
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Mon May 21, 2012 5:01 pm
Reply with quote

Shailesh,

Go to ":Connect:Direct for z/OS" and under the option SS "VIEW STATISTICS FOR A COMPLETED PROCESS" provide your process number. It will list you the log, from there you can confirm whether the NDM is actually successful.

Generally when you submit a NDM job, Connect direct process is initiated and before the file is transferred, job completed with successful RC. So with the return code of job we cannot say the file transfer is success. You need to check the process number to confirm it.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon May 21, 2012 5:05 pm
Reply with quote

Message SSPA001I merely says that the submitted process was queued.

These processes are asynchronous, so your job will not know what happened.

Select Statistics Report please?
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 Unable to interpret a hex value to De... COBOL Programming 4
No new posts How to Login in to cics region and is... CICS 9
No new posts how to eliminate null indicator value... DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
Search our Forums:

Back to Top