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

How to find the String in the extended part of a JCL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anish.ibm

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bangalore

PostPosted: Tue Jan 29, 2008 4:04 pm
Reply with quote

Hi all,

How to find for a string in the extended part of a JCL after doing a JJ on a JCL

Thanks
Anish.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Jan 29, 2008 8:07 pm
Reply with quote

"JJ" is not a standard command, so we cannot know what it does.
Can you search for the string in SDSF once the job has finished to execute? There you should have the complete JCL.
Back to top
View user's profile Send private message
anish.ibm

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bangalore

PostPosted: Tue Jan 29, 2008 8:18 pm
Reply with quote

Hi Marso,

Actually i need to expand the JCL ,by doing a JJ or JEM and then i have to find for a string in the expanded section , before it is being executed and then to collect those JCL for enhancements.

Hope my need is clear for you.

Thanks
Anish.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 29, 2008 11:16 pm
Reply with quote

Hello,

Quote:
Hope my need is clear for you.
Unfortunately, not yet.

If you post what you "have" and post what you "get" from jj and post what you need to do with it, we may be able to offer suggestion.

Someone may comletely understand what you are asking for, but most will not.
Back to top
View user's profile Send private message
anish.ibm

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bangalore

PostPosted: Wed Jan 30, 2008 9:02 pm
Reply with quote

Hi Dick,

Making very clear ....

After doing JJ or JEM we will get the below . Here i did JEM

Code:

Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
==MSG> *** ERROR SUMMARY AND COUNTS ***   JEM  JS7.0.0   01/30/2008  06:55:01 
==MSG>     1  ADVISORY LEVEL                                                   
==MSG>     2  WARNING LEVEL                                                   
==MSG>     0  ERROR LEVEL                                                     SAMPLE JEM O/P
==MSG>     9  TOTAL ISSUED        0 SUPPRESSED.                               
==MSG>      THE HIGHEST SEVERITY CODE ENCOUNTERED WAS    04.                   
==MSG>  LABEL   SV MSG.NO.    ERROR MESSAGE                                   
==MSG> -------- -- --------   -------------------------------------------------
==MSG> .JAAA     4 DSS4052W - CATALOG INDICATES DATA SET MIGRATED/ARCHIVED     
==MSG> .JAAA     4 DSS8104W - DB2 SYSTEM SPECIFIED IS NOT ACTIVE               
==MSG> .JAAA     0 DSS8094A - DB2 USING DSN RETRY DEFAULT                     



followed by the Job and if there is a PROC it will be expanded here

Code:

000001 //PERBB     JOB (A,AIC001),PERUSE1,CLASS=I,MSGCLASS=1                                     
000002 //JOBLIB    DD DSN=SYST1.PROD.LINKLIB,DISP=SHR     
       //
       //
000016 //PERBB     EXEC PERBB                                         
=NOTE=   P1//UNLOAD EXEC PGM=IKJEFT01,DYNAMNBR=20
=NOTE=   P1//SYSTSPRT DD SYSOUT=*                                             
           //
           //
           //
=NOTE=   P1//SYSTSIN  DD DSN=&CLIB(&CNTL1),DISP=SHR                            EXPANDED PART
=NOTE=   P1--SYSTSIN  DD DSN=SYST1.PROD.CONTROL(DBCNTL),DISP=SHR               
=NOTE=     ----+----1----+----2----+----3----+----4----+----5----+----6----+---
=NOTE=       DSN SYSTEM(DP2E)                                                 
=NOTE=       RUN PROGRAM(DSNTIAUL) PLAN(DSNTIEM1) LIB('DB2E.RUNLIB.LOAD') -   
=NOTE=       PARM('SQL')                                                       
=NOTE=       END                                                               
==MSG> **WARNING - DSS8104W - DB2 SYSTEM SPECIFIED IS NOT ACTIVE               
==MSG> *ADVISORY - DSS8094A - DB2 USING DSN RETRY DEFAULT                     
=NOTE=   P1//SYSIN    DD DSN=&E..PERBB.SQL.CONTROL(+1),DISP=SHR               
=NOTE=   P1--SYSIN    DD DSN=EMEAP.PERBB.SQL.CONTROL(+1),DISP=SHR             


Here i have to find for the string .. "PLAN(DSNTIEM1)" in the expanded part ... and then these JCLs are collected for enhancements. This is my requirement ..

Hope Now it is clear ..

Thanks
Anish.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 30, 2008 9:21 pm
Reply with quote

What is JEM?

O.
Back to top
View user's profile Send private message
anish.ibm

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bangalore

PostPosted: Wed Jan 30, 2008 9:33 pm
Reply with quote

Its a Syntax checking tool ... equivalent to .. TYPRUN=SCAN in the Job card ..


Thanks
Anish.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Jan 30, 2008 9:55 pm
Reply with quote

The "Extended data" you are talking about has been inserted as "Note".
If as a line command you enter "MD999" the following 999 lines will become part of your data. Then you can find it. You might want to cancel after this.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top