Submit a job using Connect Direct

Lpars A1 & A2 are two different lpars and can connect only using C.

I want to run these jobs on their lpars and don't have any dependency between them.

I knew scheduler tools like CA7 can fix this problem very well.
But now I am looking out any way to submit these two jobs from one lpar only like.

I logon to lpar/machine A1 having JOB1 and when I submit JOB1 ..Is there any way to submit JOB2 also using any C statements in last step of in JOB1.

Yes. Try a RUN JOB statement within the process. It can be directed to execute on either the PNODE or the SNODE.

[optional label] RUN JOB (DSN=dsn[(member)]) PNODE |SNODE

//SYSIN DD *
SIGNON ESF=YES
*
PROCRUN PROCESS -
PNODE=FFF -
SNODE=FFFFFF -
RUN JOB (DSN=AAAAAA.NDVR.JCL(IEBGENER)) -
&DISP=(SHR) -
&JOBNAME=AAAAA -
*
SIGNOFF
/*


but end up with SCIA001I Invalid C command.

Code:

MYPROC PROCESS PNODE=pnode_name SNODE=snode_name

COPY010 COPY FROM (DSN=FROM.DATASET -
DISP=SHR) -
TO (SNODE DSN=TO.DATASET -
DISP=(RPL,CATLG)) -
COMPRESS EXTENDED

IF (COPY010 EQ 0) THEN
STEP020 RUN JOB (DSN=MY.PDS(MEMBER)) SNODE
EIF

previously, using the below commands, i can able to transfer the dataset..
SIGNON ESF=YES
SUB PROC=NNNNNNN -
NEWNAME=Mmmmmm -
PNODE=AAA -
SNODE=BBBBB6 -
&INDSN='SSS.IN' -
&INDISP=(SHR) -
&OUTDSN='SSS.OUT' -
&DISP=(SHR) -
&JOBNAME=vvvvvvv
SIGNOFF

but using the new code of copy, not able to do the same.

From the Connect:Direct User's Guide:

Quote:

You request Connect:Direct services in the batch environment through the Batch Interface program DMBATCH. When you submit a job stream that contains the Connect:Direct commands as SYSIN input, DMBATCH reads the input stream and processes the requested functions. DMBATCH supports all Connect:Direct commands.

Review of Connect:Direct Process Statements:

i tried for detail information but no use.

so tried in different way and using ROUTE command and schedule around 20 jobs in one shot using rexx command. Able to do it successfully.

I am new to NDM,
I tried the above mentioned technique to submit a job and it worked fine

Could you please let me know if there is a parameter to submit the job at particular time?

I tried the below statement, but C does not recognise it
SIGNON
SUBMIT PROC=SUBJOBS1
STARTT=(10/14/08,16:30:00)
SIGNOFF


The SUBJOBS1 proc has the following,

Thanks Kevin, That did the trick

Does NDM have any constraint like the amount of jobs that can be queued?(something like initiators)

We are not allowed to schedule user jobs on CA7 , so I have queued few jobs like this,

SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,09:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,10:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,11:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,12:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,13:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,14:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,15:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SUBMIT PROC=FZAPEDC -
STARTT=(16/10/2008,16:30:00) -
&DSN1=BORED.PROGRAMR(FZAP)
SIGNOFF


Will scheduling many jobs cause any hinderance to production jobs or transmissions?

View Bookmarks
All times are GMT + 6 Hours