View previous topic :: View next topic
|
Author |
Message |
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi,
I want to search for a particular string in Programs in production. We are using Endevor. I have created an SCL using Endevor and given valid ENVIRONMENT,SYSTEM and SUBSYSTEM. But it is not fetching the desired result. From spool I can see some kind of error. Below I am pasting the spool output also. Please let me know the problem.
Code: |
SET STOPRC 16 .
LIST ELEMENT '*'
FROM ENVIRONMENT 'XXX' SYSTEM 'XXX' SUBSYSTEM 'XXXX'
TYPE 'XXXXXXXX' STAGE P
OPTIONS SHOWING TEXT NOSEARCH
WHERE TEXT EQ
'SOS 02-05: BERGYDERJSUM'
BUILD ACTION &&ACTION
. |
Code: |
2I ACTION #1 / STMT #2
3I LIST ELEMENT *
4I FROM ENVIRONMENT: BEP SYSTEM: XXX SUBSYSTEM: XXX TYPE:XXXXXXXX STAGE ID: P
2I OPTIONS: SHOWING TEXT, NOSEARCH
2I WHERE TEXT EQUAL SPECIFIED
0W ELEMENT(S) BYPASSED, FAILED TO SATISFY "WHERE" CLAUSE.
END OF EXECUTION LOG - HIGHEST ENDEVOR RC = 0004 EXECUTION LOG - HIGHEST ENDEVOR RC = 0004 |
Above I tried with a string that I know still it is showing above message. |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
Hello,
HC :4 doesn't mean it's an error messsage. That means it found the string you are searching for in Endevor elements.
Check you C1MSGS2 messages for the elements having RC :4 which means all those elements have that string which you are looking for
If not clear, let me know |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi HappySrinu,
I checked in C1MSGS2 there is no relevant messages. |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
you need to check the list of elements which got RC:4, it will be shown as below..in C1MSGS2....
ACTION ELEMENT RC ENVIRONMENT
LIST XXXXXXX 0000 VVVV
LIST AAAAAAA 0004 VVVV
As it means AAAAAAA element RC:4, having the text searching for.. |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi HappySrinu,
In My spool I am getting below steps. As you said here I checked in C1MSGS2. Inside that we can see only 8 lines and those are not relevant.
Code: |
COMMAND INPUT ===> SCROLL ===> CSR
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESMSGLG JES2 2 SDP143S R LOCAL 22
JESJCL JES2 3 SDP143S R LOCAL 38
JESYSMSG JES2 4 SDP143S R LOCAL 73
C1MSGS1 NDVRBAT 102 SDP143S R LOCAL 37
C1MSGS2 NDVRBAT 103 SDP143S R LOCAL 8 |
|
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
can you send me all the lines in C1MSGS2,
if you got RC:0, it means you don't have any elements which have your searching string, but if you get RC:4, you do have at least one element having your strinng.
I just tested at my site and it's doing exactly what I want.. |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Code: |
(C) 2005 Computer Associates International, Inc.
E N D E V O R A C T I O N S U M M A R
REQUESTED BY: SDP143S
PROC NDVR +-------------- FROM INFORMATIO --------------+ ACTION ACTION STMT SCL
ACTION ELEMENT RC RC ENVIRONMENT SYSTEM SUBSYSTEM TYPE STAGE TIME NUMBER NUMBER WRITTEN
LIST * 0004 BEP PGM XFCD ASCDBIF1 P 09:38:11 1 2
******************************* BOTTOM OF DATA ************************************ BOTTOM OF DATA ******************************** |
|
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
I doubt with your generation of SCL..while generating SCL, did you select elements with placing "L" beside each element?
it should look like..
LIST ELEMENT 'AAAAAAAA'
VERSION 01 LEVEL 06
FROM ENVIRONMENT 'VVVV' SYSTEM 'SSSS' SUBSYSTEM 'PPPP'
TYPE 'RUNBOOK' STAGE A
OPTIONS SHOWING TEXT NOSEARCH
WHERE TEXT EQ
'ABENDING PROGRAM'
BUILD ACTION &&ACTION
if it's not, generate scl again with selecting all elements where you do want to search with option "L" and then submit your job |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Initialy from the list I selected one element by placing 'L' beside that element. So the SCL was like the one you posted above. After that I edited that SCL because I don't know the exact elment where I can find this string. So in SCL instead of element name I put '*' and also I removed the version info for that element. After that I submitte the SCL. |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
Thats where the problem is...
Even though if you don't know element name sin Endevor, When you are doing a search from Endevor you just need to give environment, system, sub system and types and stage then automatically it lists all the elemtns present at that stage...
then select "L" beside those elements. But if you got 100's of elements then you choose options "DISPLAY OPTION = N" then on command prompt line, place "L" on the command prompt line.
then Endevor will take care selection of all the elements..
and check the scl..
I guess if you still have doubt, I recommend you check with you Endevor support/Admin team avaiable at you site.. |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Thanx HappySrinu...
It's working fine now. Earlier I was editing the SCL manually for selecting all elements. Now I changed the DISPLAY OPTION = N so in SCL we are getting all elements and getting desired result. |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
Thanks for your confirmation. |
|
Back to top |
|
|
|