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
 

 

How to trigger a job after a successful NDM process

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 12:27 am    Post subject: How to trigger a job after a successful NDM process
Reply with quote

Hi,

We have two mainframes-East & West and files need to be transferred from East to west. After the successful NDM transmission, jobs need to be trigerred.

Could anyone plz let me know how to do this?
Also, I need a sample JCL with NDM process. I have worked only on FTP.

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

superk

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 12:32 am    Post subject: Re: How to trigger a job after a successful NDM process
Reply with quote

Well, what is your current process when the data is FTP'd?

What would you like to do?
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 12:35 am    Post subject:
Reply with quote

No FTP has been done yet. I have to do the same so that files will be available to the vendor. The only thing I know is NDM is used for FTP process.
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 1:01 am    Post subject:
Reply with quote

Once the data is FTP-ed, I need to create a trigger job to transfer the files to an sFTP system.
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 1:09 am    Post subject:
Reply with quote

I just got a sample code for NDM. But didn't understand anything..
Following are the same:

NDMTOTPA PROCESS SNODE=GTEDS.TPA

STEP01 COPY FROM(PNODE DSN='....' DISP=SHR)-
TO (DSN='????(+1)'-
DISP=(NEW,CATLG,DELETE))

Could you plz tell me what it means..
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 1:41 am    Post subject: Re: How to trigger a job after a successful NDM process
Reply with quote

Unfortunately, neither I nor anyone else can easily answer your question, since we do not know what your site standards would dictate. I would recommend that you contact your Connect:Direct OS.390 Administrator and ask them. These are some of the options:


  • Does the target SNODE (West) use a job scheduling system? Most job scheduling systems can easily react to the event of a dataset being cataloged.
  • Do both the PNODE (East) and SNODE (West) systems share a common job scheduling system? Can this system easily schedule a job to run on West when a job on East is finished?
  • You can use a RUN TASK statement in your Connect:Direct OS/390 process to invoke a program on the SNODE (West) site, which can then talk to the job scheduler or perform any other task.
  • You can use a RUN JOB statement in your Connect:Direct OS/390 process to invoke a job on the SNODE (West) site.
  • You can use a SUBMIT PROCESS statement to submit another Connect:Direct OS/390 process on the SNODE (West) site.


I'd recommend that you obtain copies of the "Connect:Direct Process Statements Guide" and the "Connect:Direct OS/390 User's Guide" using your companie's account access code on www.stercomm.com.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 1:49 am    Post subject:
Reply with quote

gchitra wrote:
I just got a sample code for NDM. But didn't understand anything..
Following are the same:

NDMTOTPA PROCESS SNODE=GTEDS.TPA

STEP01 COPY FROM(PNODE DSN='....' DISP=SHR)-
TO (DSN='????(+1)'-
DISP=(NEW,CATLG,DELETE))

Could you plz tell me what it means..


NDMTOTPA is the name of the process.
PROCESS identifies the code as being a Connect:Direct process statement.
SNODE=GTEDS.TPA identifies the Secondary Node (SNODE) that the process will communicate with. This is the node as defined in the Connect:Direct NETMAP table.
STEP01 optional step name.
COPY designates that this will be a COPY process.
FROM(PNODE DSN= identifies the source of the data, which is the Primary Node (PNODE) along with a dataset name and disposition.
TO designates the target data on the Secondary Node (SNODE) along with appropriate storage requirements (DISP, DCB, UNIT, etc.).
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 2:36 am    Post subject:
Reply with quote

Thanks for the immediate replies..

As I am new to NDM, didn't understand the keywords RUNJOB & RUNTASK. But when researched a bit, saw the syntax for RUNJOB as
RUNJOB (DSN = dsn[(member)]) PNODE | SNODE

Does this mean that the DSN should have the job in the SNODE which needs to be triggered?

Today is my first day in the project and I was detailed about the requirement. so I am not sure abt the usage of CA-7. Will check with them and revert back. If available, then hope, I can specify this job as a dataset trigger, right???
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 3:26 am    Post subject: Re: How to trigger a job after a successful NDM process
Reply with quote

It is common for the RUN JOB command to specify a PDS(MEMBER) that is unique to the Connect:Direct system. Rarely, if ever, is it the actual dataset that a production job would reside in.

Also, it is VERY common to use a RUN TASK to invoke the CA-7 U7SVC program to generate a dataset trigger event to CA-7.
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 6:11 am    Post subject:
Reply with quote

If PDS(Memeber) rarely has the dataset where the job resides, then where do we specify the trigger job in the PNODE, while doing the NDM?

Whether RUN JOB & RUN TASK are part of the Process, that means - is it part of STEP01(refer the step mentioned above). Please clarify..

Could you plz let me know the syntax for RUN TASK? I know that Program is one of the parameters, where we specify U7SVC program. Do you have any sample step related to te same..

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

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 9:20 pm    Post subject: Re: How to trigger a job after a successful NDM process
Reply with quote

Quote:

stepname RUN TASK (PGM=program-name
PARM=(parameter,parameter,...)
)
SYSOPTS="parameter,parameter,..."
PNODE | SNODE
RESTART=YES | NO


stepname is optional.
RUN TASK is required.
PGM=program-name is required. The program runs on the node specified and has access to DD cards allocated on that node only.
PARM=(parameter,...) and SYSOPTS="parameter,..." are both optional. They specify the actual parameters to be passed to the program. The SYSOPTS parameter is used in addition to PGM when the task needs to run on UNIX.

The actual format of the parameter list that is passed to the program consists of a 2-byte field indicating the length of the parameter followed by the parameter itself. The valid data types for PARM are:

  • CLn'value' specifies a data type of character with a length of 'n'. The length is optional. If not specified, the actual length of the value is used.
  • XLn'value' specifies a date type of hexadecimal with a length of 'n'.
  • H'value' specifies a halfword value.
  • F'value' specifies a fullword value.
  • PLn'value' specifies a packed value with a length of 'n'.

If no type or length is specified, then the PARM is presumed to be of type character with a length the same as the length of the value.

PNODE specifies that the program will execute on the PNODE, which is the default.
SNODE specifies that the program will execute on the SNODE. The program must exist in a LOADLIB allocated to Connect:Direct on the specified node.
RESTART=YES|NO specifies whether or not the TASK is restarted if interrupted.
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 11:11 pm    Post subject: Re: How to trigger a job after a successful NDM process
Reply with quote

Hi,

Thanks for the clarifications.

I need one more assisstance. There are 60 files on the East mainframe which need to be NDM-ed to West mainframe. After the successful tranfer, I need to setup a trigger job to send these files to mailbox repository of the vendor/sFTP system from where Vendor can access. I want to know whether it is possible to have just one jcl/job for all these files(using GDG etc) or alteast less number of jobs rather than having 1job for each file.
Back to top
View user's profile Send private message
gchitra

New User


Joined: 08 Jun 2005
Posts: 36
Location: Burtonsville, MD

PostPosted: Tue Nov 29, 2005 11:47 pm    Post subject:
Reply with quote

What does (-0) indicate in the GDG file
abc.def.xyz(-0)?

Is this same as specifying (0), current generation? If so, then why do we specify "-"?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm


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