IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL to get ca7 sar log into flat file


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 213
Location: Chennai

PostPosted: Wed Jul 10, 2013 12:35 pm
Reply with quote

A kind help,
I need a sample jcl to execute CA7 command from JCL and to see the result in a flat file.

I need to execute below command and store the output in a flat file.

LRLOG,SPAN=*,JOB=M*

Tried below jcl, no joy, In CA7 online i could get the log directly, when i try it in jcl, it is telling access issue.
Code:

//BTERM   EXEC  PGM=SASSBSTR,PARM=1             
//STEPLIB  DD  DISP=SHR,DSN=SYS3.CAI.CA7.CAILIB 
//SYSPRINT DD SYSOUT=A,HOLD=YES                 
//SYSUDUMP DD  SYSOUT=D                         
//UCC7CMDS DD  DISP=SHR,DSN=SYS3.CAI.CA7.COMMDS 
//SYSIN    DD *                                 
/LOGON                                           
 LRLOG,SPAN=*,JOB=M*                           
/LOGOFF                                         
/*                                               

Thanks
Regards,
Magesh
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jul 10, 2013 12:45 pm
Reply with quote

How about posting the full message(s) including codes and text?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed Jul 10, 2013 12:50 pm
Reply with quote

Hello,

Try changing this

Code:
/LOGON

to
Code:
/LOGON XXXX,YYYYY

XXXX - ur CA7 userid
YYYY - ur CA7 password

I used to use SASSBSTR with my userid and password coded in the /LOGON.

or if you know your UID RESOURCE name, then you could try
Code:
/LOGON XXXX,YYYYY
/UID,R=WELLS

WELLS - ur UID resource name.

Edit: As Bill said, post the error messages that you are getting.

Hope it helps.
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 213
Location: Chennai

PostPosted: Wed Jul 10, 2013 12:58 pm
Reply with quote

the error message
Code:

ICH408I USER(USERID1 ) GROUP(APPDEPT1) NAME(J, ZZZZZ   )  547   
  SYS3.CAI.CA7.COMMDS CL(DATASET ) VOL(LIBD01)                           
  INSUFFICIENT ACCESS AUTHORITY                                         
  FROM SYS3.CAI.CA7.COMMDS (G)                                           
  ACCESS INTENT(UPDATE )  ACCESS ALLOWED(READ   )                       
IEC150I 913-38,IFG0194E,USERID1A,BTERM,UCC7CMDS,3A04,LIBD01,SYS3.CAI.CA7.
JOB-USERID1A STEP-BTERM
ABEND CODE=S913


From the error message i understand, this job is trying to access in update mode,

Is there any other way to pass the CA7 command from JCL and get the output in flat file
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 10, 2013 1:16 pm
Reply with quote

Probably best to go speak with your CA7 people as they will have the authority,

proably best done before the security people come and talk to you icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top