Okay, I tried this. Does not seem to work. What am I doing wrong?

1. I override the SYSIN in the PROC with -- and I checked the job output, the 
override worked --

//SYSIN    DD   *                                        
/*                                                       
//         DD   DSN=original.sysin,DISP=SHR    

2. The EXEC PARM is still 'TEST(BLOCK,SEP)'

3. Not sure of the relevance but yes, there are multiple comment lines 
following the four *PROCESS statements in the source file.

The behavior is as before. The *PROCESS TEST(BLOCK,SYM) in the source file 
still overrides the TEST(BLOCK,SEP) in the PARM statement.

I also tried copying the *PROCESS statements from the source code into the 
above in-stream SYSIN, changing the TEST option to (BLOCK,SYM,SEP), and 
followed by a blank comment to "invalidate" the ensuing *PROCESS statements.

That worked as far as the options were concerned, but I also get 

IBM1859I S       6.0    The first statement must be a PROCEDURE or PACKAGE 
statement.    
IBM2605I W       6.0    Invalid carriage control character. Blank assumed.      
   

In other words, the *PROCESS statements in the source file give me S-level 
errors.

If I eliminate the blank comment, then the compiler sees all 8 PROCESS 
statements and honors the last TEST it sees, the one in the source file, and 
the problem is the same as before.

Am I missing something?

Charles

On Thu, 13 Jun 2024 19:07:46 +0000, Robert Prins <[email protected]> 
wrote:

>OK, I found another way to transiently zap any *PROCESS statements in the
>source, but it will only work if your source starts with a comment line
>after any of them. To do so you also need to be able to access the compile
>JCL, which you obviously) can do using the SJ command in SDSF. Just change
>the
>
>//SYSIN DD DSN=MYPLI.SOURCE(WHATEVER),DISP=SHR
>
>in
>
>//SYSIN DD *
> /*
>// DD DSN=MYPLI.SOURCE(WHATEVER),DISP=SHR
>
>And note that this will wipe out *ALL* "*PROCES" statements, so you might
>want to add the ones you need before the /* in SYSIN.
>
>Robert

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to