JJSCAN macro is waiting for user input.



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

JJSCAN macro is waiting for user input.

Postby whowillwait4u » Tue Jun 26, 2012 3:21 pm

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.
whowillwait4u
 
Posts: 15
Joined: Fri Feb 17, 2012 2:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JJSCAN macro is waiting for user input.

 

Re: JJSCAN macro is waiting for user input.

Postby Pedro » Tue Jun 26, 2012 7:17 pm

You have to show us what JJSCAN does.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: JJSCAN macro is waiting for user input.

Postby whowillwait4u » Tue Jun 26, 2012 8:08 pm

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
whowillwait4u
 
Posts: 15
Joined: Fri Feb 17, 2012 2:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JJSCAN macro is waiting for user input.

Postby Pedro » Wed Jun 27, 2012 2:08 am

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"?
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: JJSCAN macro is waiting for user input.

Postby whowillwait4u » Thu Jul 26, 2012 11:27 pm

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.
whowillwait4u
 
Posts: 15
Joined: Fri Feb 17, 2012 2:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JJSCAN macro is waiting for user input.

Postby NicC » Thu Jul 26, 2012 11:33 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: JJSCAN macro is waiting for user input.

Postby Pedro » Fri Jul 27, 2012 6:24 am

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.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post