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: 7251

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: 1458
Location: Azeroth

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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