IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL to query on the ENDEVOR


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 07, 2010 11:22 am
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 07, 2010 1:38 pm
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top