Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL to query on the ENDEVOR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Sep 07, 2010 11:13 am    Post subject: JCL to query on the ENDEVOR
Reply with quote

Hi all,

I'm running a JCL to query the ENDEVOR details using below

Code:

 //ENDVRJCL JOB USER,'NDVR LIST JOB',CLASS=A,MSGCLASS=A,       
 //         REGION=4M,NOTIFY=&SYSUID                           
 //ENBE1000 EXEC PGM=NDVRC1,PARM='C1BM3000',REGION=0K         
 //C1MSGS1  DD SYSOUT=*                                       
 //C1MSGS2  DD SYSOUT=*                                       
 //SYSPRINT DD SYSOUT=*                                       
 //SYSOUT   DD SYSOUT=*                                       
 //SYSTERM  DD SYSOUT=*                                       
 //SYSUDUMP DD SYSOUT=*                                       
 //BSTIPT01 DD *                                               
     LIST ELEMENT 'AABBMM'                                   
          FROM ENVIRONMENT 'PRD'                             
          SYSTEM 'XP'                                         
          SUBSYSTEM 'XP'                                       
          TYPE 'COBOL'                                         
          STAGE 'P'                                           
 /*                                                           



I get a MAXCC = 12 below is the listing


Code:

  STATEMENT #1                                                         
      LIST ELEMENT 'AABBMM'                                         
           FROM ENVIRONMENT 'PROD'                                     
           SYSTEM 'XP'                                                 
           SUBSYSTEM 'XP'                                             
           TYPE 'COBOL'                                               
           STAGE 'P'                                                   
  BSTPPARS: E004 INVALID COMMAND WORDING, FOUND: <END OF LINE>         
 C1BM4100: E031 NO ACTION REQUESTS WERE GENERATED                     
 01:36:32  C1Y0014E  ERROR ENCOUNTERED WHEN PARSING SYNTAX.  PROCESSING
           END OF EXECUTION LOG - HIGHEST ENDEVOR RC = 0012           



can you please suggest me in modifying this JCL the changes required so that i can customize.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 07, 2010 11:22 am    Post subject:
Reply with quote

What does the examples in the manual show regarding syntax.
Have you asked a peer for a job that currently works.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Sep 07, 2010 1:20 pm    Post subject:
Reply with quote

I guess it should have a period at the end of the statement.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2441
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 07, 2010 1:38 pm    Post subject:
Reply with quote

I think you have to remove FROM from :

FROM ENVIRONMENT 'PROD'
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Sep 07, 2010 2:12 pm    Post subject:
Reply with quote

Thanks all,

It worked by using a period at the end of the statement.
Code:

//ENDVRJCL JOB USER,'NDVR LIST JOB',CLASS=A,MSGCLASS=A,
//         REGION=4M,NOTIFY=&SYSUID                   
//ENBE1000 EXEC PGM=NDVRC1,PARM='C1BM3000',REGION=0K   
//C1MSGS1  DD SYSOUT=*                                 
//C1MSGS2  DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*                                 
//SYSOUT   DD SYSOUT=*                                 
//SYSTERM  DD SYSOUT=*                                 
//SYSUDUMP DD SYSOUT=*                                 
//BSTIPT01 DD *                                       
    LIST ELEMENT 'AABBMM'                           
         FROM ENVIRONMENT 'PROD'                       
         SYSTEM 'XP'                                   
         SUBSYSTEM 'XP'                               
         TYPE 'COBOL'                                 
         STAGE 'P'.                                   
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Sep 07, 2010 2:25 pm    Post subject:
Reply with quote

When i submit the above JCL I'm getting a MAXCC =12 with the below message.

Code:

UNABLE TO MATCH SYSTEM XP IN ENVIRONMENT PROD


is it any other way to specify the SYSTEM parametr as
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Sep 07, 2010 2:39 pm    Post subject:
Reply with quote

Actually my requirement is to attain the version details of the element from the PRDN region.

You might suggest me as to go from the PDS listing options to get the version details of an element,but the PRDN PDS does not hold any of the parameters.

So,the only way i could find the version details is to retrieve from the Endevor.

As i have approached with the above JCL i'm unable to retrieve the minimal details.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Sep 07, 2010 3:17 pm    Post subject:
Reply with quote

sorry all for troubling.

the JCL ran fine now with the proper SYSTEM
Code:
//ENDVRJCL JOB USER,'NDVR LIST JOB',CLASS=A,MSGCLASS=A,
//         REGION=4M,NOTIFY=&SYSUID                   
//ENBE1000 EXEC PGM=NDVRC1,PARM='C1BM3000',REGION=0K   
//C1MSGS1  DD SYSOUT=*                                 
//C1MSGS2  DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*                                 
//SYSOUT   DD SYSOUT=*                                 
//SYSTERM  DD SYSOUT=*                                 
//SYSUDUMP DD SYSOUT=*                                 
//BSTIPT01 DD *                                       
    LIST ELEMENT 'AABBMM'                           
         FROM ENVIRONMENT 'PRD'                       
         SYSTEM 'XP'                                   
         SUBSYSTEM 'XP'                               
         TYPE 'COBOL'                                 
         STAGE 'P'.     



The SYSTEM was to given as PROD instead of PRD.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts CA-Endevor Admin - 3 years minimum vasanthz Mainframe Jobs 0 Tue Apr 04, 2017 5:36 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us