MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NDM-Dataset Created in NDm step not available for below step

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Karumanchi
Beginner


Joined: 13 Mar 2007
Posts: 9
Topics: 3

PostPosted: Wed Mar 14, 2007 2:19 pm    Post subject: NDM-Dataset Created in NDm step not available for below step Reply with quote

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
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Mar 15, 2007 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Karumanchi
Beginner


Joined: 13 Mar 2007
Posts: 9
Topics: 3

PostPosted: Thu Mar 15, 2007 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Thu Mar 15, 2007 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Karumanchi
Beginner


Joined: 13 Mar 2007
Posts: 9
Topics: 3

PostPosted: Fri Mar 16, 2007 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Mar 16, 2007 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group