MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Executing CA7 commands in batch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Anit1
Beginner


Joined: 20 Jul 2003
Posts: 4
Topics: 3
Location: India

PostPosted: Tue Aug 19, 2003 8:19 am    Post subject: Executing CA7 commands in batch Reply with quote

Hi,


I need to run CA7 command LRLOG,job=abc*,seq=job in batch.
I searched in this and found the below code under "Utility to find long running jobs".

Use procedure UCC7BTI.

//STEP030 EXEC UCC7BTI
//BTERM.SYSPRINT DD DSN=XXXXXX.YYYYY.ZZZZZ,DISP=QQQ
//BTERM.SYSIN DD *
LPRRN,JOB=********


What's this UCC7BTI. Which program we are using here.
Could you please explain it.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Aug 19, 2003 10:50 am    Post subject: Reply with quote

Anit1,
UCC7BTI is a proc which execuetes the program SASSBSTR which can be used to run CA-7 commands in a batch mode.

The BTI in the ucc7bti stands for BATCH TERMINAL INTERFACE.Batch terminals provide the ability to process commands in batch as if from an online terminal. You can perform many of the same commands available online in this manner if no CA-7 online terminal is available, if hardcopy output is desired from the commands performed, or if more than 255 pages of output could be produced. Each batch terminal is actually a pair of disk data sets, one input and one output. These data sets must be defined in the online CA-7 JCL.

When using a batch terminal, ICOM does not have to be active on the CPU where SASSBSTR is running; but the batch terminal must have access to the Communications data set.

The SASSBSTR program does the following:

Code:

1.Locates and allocates an available pair of batch terminal data sets.

2.Loads commands to be processed from SYSIN into the batch input data set.

3.Notifies CA-7 to start the batch terminal for processing.

4.Waits for CA-7 to process the commands in the input data set and place responses in the output data set.

5.Retrieves the output and writes it to a SYSOUT data set. The BTI output can be checked against a user-defined table of messages to detect error or warning conditions.


The sample UCC7BTI proc looks like this

Code:

//UCC77BTI  PROC  ID=0,POOL='1-8',DSNPFX=,OPT=,PG=SASSBSTR
//BTERM     EXEC  PGM=&PG,
//               PARM='&ID,POOL=(&POOL),DSNPFX=&DSNPFX,&OPT'
//STEPLIB   DD  DISP=SHR,DSN=cai.ca7.loadlib
//UCC7CMDS  DD  DISP=SHR,DSN=cai.ca7.commds
//SYSPRINT  DD  SYSOUT=*,DCB=BLKSIZE=133
//ERRORS    DD  SYSOUT=*,DCB=BLKSIZE=133
//SYSUDUMP  DD  SYSOUT=*


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anit1
Beginner


Joined: 20 Jul 2003
Posts: 4
Topics: 3
Location: India

PostPosted: Wed Aug 20, 2003 11:20 pm    Post subject: Reply with quote

I am not able to find the STEPLIB and UCC7CMDS lib. Is there any way to find the corresponding lib?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Aug 21, 2003 5:49 am    Post subject: Reply with quote

Anit1,

Find out from your systems people. Each shop has its own naming conventions.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group