Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 81
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: 81
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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: 88
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: 81
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 IBM website search issues starting 06... harisukumaran General Talk & Fun Stuff 1 Thu Jun 14, 2018 7:48 pm
No new posts BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am
No new posts DB2 Sql Error code -204 rohit_naidu DB2 5 Fri May 18, 2018 4:40 pm
No new posts Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts Getting an error from EZASOKET while ... vaibhav gs COBOL Programming 5 Thu May 17, 2018 9:21 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us