Page 1 of 1

JJSCAN macro is waiting for user input.

PostPosted: Tue Jun 26, 2012 3:21 pm
by whowillwait4u
Hi,
I have a requirement to work on temp file created by JJSCAN.
I am wring a rexx code for that, created a macro for JJSCAN.
It like:
/* REXX MACRO */
"ISREDIT MACRO PROCESS"
"ISREDIT JJSCAN"
"ISREDIT END"
ADDRESS 'ISPEXEC'
RETURN

But when I execute this macro through my rexx program, the JCL member in JCL pds is opening with JJSCAN mode but waiting for user command F3, If I press f3 then it is going for next member of PDS. Please suggest how to avoid user intervention.

Thanks in advance.

Re: JJSCAN macro is waiting for user input.

PostPosted: Tue Jun 26, 2012 7:17 pm
by Pedro
You have to show us what JJSCAN does.

Re: JJSCAN macro is waiting for user input.

PostPosted: Tue Jun 26, 2012 8:08 pm
by whowillwait4u
JJSCAN is nothing but outcome of TYPERUN=SCAN in Jobcard. It will expand all symbolic variables and substitues in jcl proc.
The above specified macro code is opening the PDS member in brouse mode with expansion of all symbolics (It is a temp file careted with my id as HLQ).
Thanks

Re: JJSCAN macro is waiting for user input.

PostPosted: Wed Jun 27, 2012 2:08 am
by Pedro
the JCL member in JCL pds is opening with JJSCAN mode but waiting for user command F3

and
is nothing but outcome of TYPERUN=SCAN in Jobcard.

I wish to help you, but I do not know JJSCAN. You have not provided enough information for me to help. What is "JJSCAN mode"?

Re: JJSCAN macro is waiting for user input.

PostPosted: Thu Jul 26, 2012 11:27 pm
by whowillwait4u
Hi,

Sorry for late reply, JJSCAN is projcl product. JJSCAN it self is a macro here. If we type JJSCAN on command line of any JCL and press enter, it will give expanded JCL..that means...in case if JCL is using a proc, then JJSCAN will substitute the symbolic parms and DSN overrides used for proc and it will display entire JCL by expanding all procs.

For this expansion system will create a temp dataset to disply expanded jcl ex: myid.somename.temp1 and also that will displayed in brouse mode. if we press F3 system will give "process completed" message and usual JCL (unexpanded one) will be displayed.And temp file will be deleted automatically.

So now my rexx macro will open expanded jcl member1 in given pds in a temp file and in brouse mode; and if we press f3 rexx will do same for member2 of pds.

I want to capture that temp file and need to do some work with it.

If any one give any idea, it will be very helpful to me. Thanks in advance.

Re: JJSCAN macro is waiting for user input.

PostPosted: Thu Jul 26, 2012 11:33 pm
by NicC
Swap screen and copy the temp dataset to a permanent one. Or get the person responsible to get JJSCAN modified to view the temp dataset. Or, locate the JJSCAN macro, copy it to your own library and modify it to view or edit the temp dataset or even to create a non-temp name.

Re: JJSCAN macro is waiting for user input.

PostPosted: Fri Jul 27, 2012 6:24 am
by Pedro
Write a rexx program that:
1. VGETs variable ZSCREENI
2. parse out the name of the temp file
3. copy that temp file to your permanent dataset.