Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error with the Search job in Batch mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sandeep kumar302

New User


Joined: 14 Mar 2012
Posts: 69
Location: India

PostPosted: Fri May 23, 2014 1:17 pm    Post subject: Error with the Search job in Batch mode
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: 69
Location: India

PostPosted: Fri May 23, 2014 1:18 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri May 23, 2014 1:34 pm    Post subject: Reply to: Error with the Search job in Batch mode
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: 65
Location: India

PostPosted: Fri May 23, 2014 2:48 pm    Post subject: Re: Error with the Search job in Batch mode
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: 69
Location: India

PostPosted: Fri May 23, 2014 4:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us