Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL to get ca7 sar log into flat file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 159
Location: Chennai

PostPosted: Wed Jul 10, 2013 12:35 pm    Post subject: JCL to get ca7 sar log into flat file
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Wed Jul 10, 2013 12:45 pm    Post subject: Reply to: JCL to get ca7 sar log into flat file
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: 1475
Location: Chennai

PostPosted: Wed Jul 10, 2013 12:50 pm    Post subject:
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: 159
Location: Chennai

PostPosted: Wed Jul 10, 2013 12:58 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 10, 2013 1:16 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us