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: 10586
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 Search string from concatenated input... srini24 JCL & VSAM 8 Sat Mar 30, 2019 9:51 pm
No new posts z/VM z/VSE Get CPU-time of a COBOL Ba... Andi1982 COBOL Programming 2 Mon Mar 11, 2019 3:36 pm
This topic is locked: you cannot edit posts or make replies. PARAMETER 'F1' IS UNIDENTIFIED error ... Poha Eater DFSORT/ICETOOL 14 Fri Feb 01, 2019 2:39 pm
No new posts SORT INNER JOIN [F1] OUT OF SEQ ERROR balaji81_k DFSORT/ICETOOL 8 Wed Jan 30, 2019 3:21 am
No new posts Search an array inside an array amitc23 COBOL Programming 5 Thu Jan 24, 2019 4:19 pm

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