View previous topic :: View next topic
|
Author |
Message |
sandeep kumar302
New User
Joined: 14 Mar 2012 Posts: 81 Location: India
|
|
|
|
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 |
|
|
sandeep kumar302
New User
Joined: 14 Mar 2012 Posts: 81 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
NOT a jcl problem,
should have been posted to the ISPF section... |
|
Back to top |
|
|
Abid Hasan
New User
Joined: 25 Mar 2013 Posts: 88 Location: India
|
|
|
|
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:
Hth. |
|
Back to top |
|
|
sandeep kumar302
New User
Joined: 14 Mar 2012 Posts: 81 Location: India
|
|
|
|
Thanks Abid,
It worked after i made the changes suggested by you. |
|
Back to top |
|
|
|