Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Any way to find the success of NDM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
kratos86

New User


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

PostPosted: Fri Jul 04, 2008 10:58 am    Post subject: Any way to find the success of NDM
Reply with quote

Is there any case like - the NDM job is submitted and its RC = 00. But the file is not transmitted successfully. In this case is there anything that we can do. To check the file is transmitted. Like any additional step, that can be added to find this out.

regards,
raj
Back to top
View user's profile Send private message
References
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 191
Location: India

PostPosted: Fri Jul 04, 2008 12:19 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

can't you go and check on target lpar/machine regarding that transferring dataset

secondly if you are in foreground, you can use option "SS" for completed process
Back to top
View user's profile Send private message
Moved: Fri Jul 04, 2008 1:27 pm by superk From JCL to Other Mainframe Topics
kratos86

New User


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

PostPosted: Fri Jul 04, 2008 2:27 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

Hi Srini,
We have various NDM jobs running in late nights. So, it is not possible for us to sit and monitor the jobs always. And also we have authentication only to send files to the LPAR.

whenever a ndm fails it will give a non-zero return code. We get page regarding that.

As i mentioned, Is there any way to find out ...

regards,
Raj
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3317
Location: Charlotte,NC USA

PostPosted: Fri Jul 04, 2008 3:44 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

Raj, I'm confused.

First, you said that you want to know when a Process has executed successfully. Srini gave the correct answer. You, or an authorized person, should use the Select Statistics (SS) option from the Connect:Direct User Interface (on CICS or on ISPF) to determine the status of your Process.

Next, you say that some of these run late at night and it's not possible to be there to monitor them. You also say that whenever a Process fails you get a page. So, if you're not there to monitor the Processes, what do you want done? Surely you must have onsite operations and product support teams who would perform that function on your behalf? Don't you post alerts to your operator consoles if a Process fails? Wouldn't they then page out to your team?

The problem I have here is that I don't know what your policies and procedures are regarding these Processes.

My first thought is that you should change your procedures to have your Connect:Direct jobs submit the Process, then sit and wait for your Process to complete. If the process completes successfully, then your job ends. If it fails, then your job abends or ends with a non-zero RC, whichever is preferred in your shop.

My second thought is that you should include steps in your Process code to check the RC of the COPY step and take an appropriate course of action if it is not zero, such as sending a message to your terminal or a console, sending an email, calling some other program or batch job to perform some other type of action.

My third thought is that you would have another job that would run after your Process has completed that would run a batch equivalent of the formerly mentioned SS report.
Back to top
View user's profile Send private message
kratos86

New User


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

PostPosted: Tue Jul 08, 2008 9:52 am    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

Hi kevin,
Quote:
Raj, I'm confused.


1. Generally if we submit some NDM, jobs then we can use the SS operation to check whether the ndm is succesful or not.
2. In my system, we have various NDM jobs to other LPAR which is running in night time. The operations team will page us only when they found any abend.

My question is
1. Is there any cases like the ndm job is succesful (rc=00) but still the file is not ndmed.
2. If yes, then is there any possible way to check that.

thanks,
Raj
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 21

PostPosted: Tue Jul 08, 2008 10:48 am    Post subject: hi
Reply with quote

In the case of NDM jobs, RC = 0, doesnt mean that file has been transmitted successfully. you need to check with the process no from your NDM sysout step.
Back to top
View user's profile Send private message
kratos86

New User


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

PostPosted: Tue Jul 08, 2008 2:46 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

Hi unni_nss,

Quote:
In the case of NDM jobs, RC = 0, doesnt mean that file has been transmitted successfully. you need to check with the process no from your NDM sysout step.


Checking the process No is quite fine. Since, we have a lot of NDM jobs. Its not possible to check the process always that too in night..

But i want to know is there any other way to get the info. Like, having a step inside the ndm to check that..

Hi kevin,
Quote:
My third thought is that you would have another job that would run after your Process has completed that would run a batch equivalent of the formerly mentioned SS report.


Can u give me some idea.. how to code an equivalent job...


regards,
Raj
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3317
Location: Charlotte,NC USA

PostPosted: Tue Jul 08, 2008 3:07 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

The Connect:Direct User's Guide gives the details for the syntax of the SELECT STATISTICS command.
Back to top
View user's profile Send private message
arun prazad

New User


Joined: 13 Dec 2007
Posts: 2
Location: India

PostPosted: Tue Aug 19, 2008 7:07 pm    Post subject:
Reply with quote

Hi,

I am continuing an old post because my requirement is also the same as what kratos86 asked and I didn't see it being answered.

I would like to know is there any way to know whether the file has been transmitted successfully from the job. In some cases the The NDM job ( JCL ) gives a return code zero and the file is not transmitted. We can get the details by looking at SELECT STATISTICS. I would like to know if there is any way to handle this in JCL ,meaning if the process return code is non-zero I need to abend step in JCL. In other words is there any way to capture the process return code from JCL.


Thanks in advance
Prasad
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3317
Location: Charlotte,NC USA

PostPosted: Tue Aug 19, 2008 7:27 pm    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

Raj & Prased, what are your respective site's policies on using either the CDWAIT/CDPOST or MAXDELAY parameters for your processes?
Back to top
View user's profile Send private message
arun prazad

New User


Joined: 13 Dec 2007
Posts: 2
Location: India

PostPosted: Wed Aug 20, 2008 1:24 pm    Post subject:
Reply with quote

Kevin,

I am not sure of where to check for these parameters ( CDWAIT/CDPOST or MAXDELAY ). If I code MAXDELAY=UNLIMITED will it solve my issue. nothing is coded in the control card or in side the proc which we submit thru the control card. How can I know what is the value for this? is there any default value for this? can you please share with us about the parameters CDWAIT and CDPOST.


A big thanks to you for taking me to the right path
Regards
Prasad
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3317
Location: Charlotte,NC USA

PostPosted: Thu Aug 21, 2008 1:34 am    Post subject: Reply to: Any way to find the success of NDM
Reply with quote

I'd really like to see you follow-up on these parameters from the appropriate documents.

From the Connect:Direct for z/OS (Version 4.7) User's Guide section titled Synchronizing Submitted Processes:

Quote:

You can synchronize submitted Processes by coding the MAXDELAY keyword parameter in either the SUBMIT command or the PROCESS statement. The MAXDELAY keyword enables you to suspend the execution of the DMBATCH jobstep until the submitted Process either completes or a
specified interval of time elapses.

Note: MAXDELAY allows more flexibility than CDWAIT and CDPOST because it does not require the job stream submitting the process to run in the same system as the DTF.

For a detailed description of the MAXDELAY parameter, refer to the Connect:Direct Processes Web site at
http://www.sterlingcommerce.com/documentation/processes/processhome.html (and then go to the MAXDELAY parameter link from the PROCESS statement).

The following example shows the MAXDELAY keyword coded in the SUBMIT command:
Code:

//SYSIN DD *
SIGNON USERID=(USER01,PASSWRD)
SUBMIT PROC=PROCAAA MAXDELAY=UNLIMITED
SIGNOFF
/*

You can also place the MAXDELAY keyword in the PROCESS statement for PROCAAA, as in the following example:
Code:

PROCAAA PROC SNODE=REMOTE.NODE.B MAXDELAY=UNLIMITED
STEP01 COPY TO (DSN=USER01.TESTDATA.OUTPUT -
      DISP=RPL -
      SNODE) -
    FROM (DSN=USER01.TESTDATA.INPUT -
      DISP=SHR -
      PNODE)

Connect:Direct for z/OS version 4.7 is the last release to support the CDWAIT and CDPOST programs.


So, maybe it's best to stick with MAXDELAY then.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1