sorry for late reply, i was stuck in some production work...
Well, I checked RC but not TRACE and RC is throwing 4.
When we issue JSCAN on any job, the expanded job is opened in USERID.JLSCRN in Browse mode with error summary.
The above rexx code/macro is also doing the same thing. Its executing the JSCAN and opens the expanded jcl.
But i want to issue the JSCAN and don't want JSCAN to open that dataset. Rather , i would want to do like thos.
1. Execute JSCAN thru rexx
2. Copy expanded jcl to another dataset which is available from JSCAN but not opened.
3. Open that copied dataset( USERID.JOBNAME.SYSTEM.JLSCRN) in Browse mode.
Reason is, My team usually work on 2 systems.By doing this we can JSCAN more than one job in different systems.