View previous topic :: View next topic |
Author |
Message |
Karumanchi Beginner
Joined: 13 Mar 2007 Posts: 9 Topics: 3
|
Posted: Wed Mar 14, 2007 2:19 pm Post subject: NDM-Dataset Created in NDm step not available for below step |
|
|
We have a job which has a NDM step which copies one input file to Output file which has attributes (RPL,CATLG). That output file being used in the next step for some processing.
So my problem here is after NDM step, job is abending saying that NDM output file is not found for the next step.
Once it abends file is avaible for USE. So a normal Restart is working.
Now i dont want the job to abend.
Any help/suggestions on this is higly appreciated. |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Mar 15, 2007 11:18 am Post subject: |
|
|
Can you show the definitions for file creation and the JCL or whatever in step 2? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
Karumanchi Beginner
Joined: 13 Mar 2007 Posts: 9 Topics: 3
|
Posted: Thu Mar 15, 2007 2:13 pm Post subject: |
|
|
Hi Dennis,
Code: |
//S010 EXEC NDMBAT
//SYSIN DD *
SIGNON USERID=(TMSEAND,NDMUTEST) ESF=YES
SUBMIT DSN=PMSDD.PROCLIB(NDMFXT02) SNODEID=(SIGNON,TEST)
SIGNOFF
/*
//**
// EXEC PGM=ABEND,COND=(0,EQ,S010.S1),
// PARM='CONDITION CODE GREATER THAN ZERO IN S010'
//**
//*********************************************************************
//*** S015: FXTPG201 - COMPARE HDR RECS OF CURR AND PREV MONTH FILES*
//*********************************************************************
//S015 EXEC PROGPROC,PGMNAME=FJPPGFX8,GP=PMSDD
//*
//CURRFL DD DSN=PMSDF.JP.@MONTH.ACCRFILE,
// DISP=SHR
//PREVFL DD DSN=PMSDF.JP.MSTR.ACCRFILE(0),
// DISP=SHR
Also here is PMSDD.PROCLIB(NDMFXT02)
NDMFXT01 PROCESS SNODE=CHH.NDM
COPY FROM(SNODE DSN=QZLDAAT.ACRGDG.MEDPAR.MEDSYS(0) -
DISP=SHR) -
COMPRESS PRIME=X'40' -
TO(PNODE DSN=PMSDF.JP.@MONTH.ACCRFILE -
DISP=(RPL,CATLG) UNIT=SYSDA)
|
Job is abending at S015 with JCL error saying file not found. After abend we just RESTART the job.
Please let me know if you need any info.
Regards,
Srini |
|
Back to top |
|
 |
ravikumar_sri2001 Beginner

Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
|
Posted: Thu Mar 15, 2007 11:52 pm Post subject: |
|
|
Srini,
NDM process is asynchronous. So eventhuogh the first step is completed the copy operation might not have completed.
You can have the second step as a separate job and have that job as file triggered.
Thanks,
Ravikumar. |
|
Back to top |
|
 |
Karumanchi Beginner
Joined: 13 Mar 2007 Posts: 9 Topics: 3
|
Posted: Fri Mar 16, 2007 12:00 pm Post subject: |
|
|
Hi Ravi,
Yes that will work, if we have two seperate jobs.
So thru one job is it not possible?
Thanks
Srini |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Mar 16, 2007 3:27 pm Post subject: |
|
|
No, step S015 will have no way to know when the file has arrived. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
|
|