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

Error with the Search job in Batch mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 81
Location: India

PostPosted: Fri May 23, 2014 1:17 pm
Reply with quote

hi,
I am running a batch job to search for all the programs who has the '12' between columns 7 - 72. Note i also have to exclude the comment

For example - IF TYPE-BUS = '12' or ....

but when i submit the job like below, i am getting the RC= 28.

Code:

//SRCHITMG JOB TEST,'COMPARE',CLASS=A,MSGCLASS=X,REGION=0M,
//         NOTIFY=&SYSUID,
// USER=CPISXK,PASSWORD=
//* JOB TO SEARCH FOR STRINGS IN A PDS
//SEARCH   EXEC PGM=ISRSUPC,
//            PARM=(SRCHCMP,
//            'ANYC')
//NEWDD    DD DSN=ENDVR.USR.PROD.SOURCE,
//          DISP=SHR
//OUTDD    DD SYSOUT=(*)
//SYSIN    DD *
SRCHFOR  ''12''
CMPCOLM  7:72
DPLINE   '*',7
/*


The error shows that-

THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
SRCHFOR ''12''
ISRS025W INVALID PROCESS STATEMENT DATA-VALUE/OPERAND, EXTRA DATA OR EXCEEDS COLUMN 72. STMT/OPERAND IGNORED.
CMPCOLM 7:72
DPLINE '*',7

ISRS012W SRCHFOR STATEMENT(S) MISSING FOR SEARCH-FOR COMPARE TYPE REQUEST. ZERO

Can someone please help!!
Back to top
View user's profile Send private message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 81
Location: India

PostPosted: Fri May 23, 2014 1:18 pm
Reply with quote

Hi,

Note that i have to search for all '12' not 12. That is the reason i am using -
SRCHFOR ''12'' but dont know if its correct
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 23, 2014 1:34 pm
Reply with quote

NOT a jcl problem,
should have been posted to the ISPF section...
Back to top
View user's profile Send private message
Abid Hasan

New User


Joined: 25 Mar 2013
Posts: 88
Location: India

PostPosted: Fri May 23, 2014 2:48 pm
Reply with quote

Hello,

sandeep kumar302 wrote:
hi,
//SYSIN DD *
SRCHFOR ''12''
[/code]


Change your SRCHFOR statement in the SYSIN to the below shown string; meaning, add two Single Quotes, other than the one present in your search string:

Code:
SRCHFOR  '''12'''


Hth.
Back to top
View user's profile Send private message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 81
Location: India

PostPosted: Fri May 23, 2014 4:51 pm
Reply with quote

Thanks Abid,
It worked after i made the changes suggested by you.
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 HILITE on Browse mode? TSO/ISPF 2
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top