View previous topic :: View next topic
|
Author |
Message |
magesh23586
Active User
Joined: 06 Jul 2009 Posts: 213 Location: Chennai
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
How about posting the full message(s) including codes and text? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
Try changing this
to
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 |
|
|
magesh23586
Active User
Joined: 06 Jul 2009 Posts: 213 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
|