MAINFRAME - TIP OF THE DAY :
Q. If there is a situation, where we need to code more than 255 steps in a JOB?
A. We need to split jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl.
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
Posted: Mon Oct 15, 2007 3:35 am Post subject: RC=08 from VSAM Delete
I have a problem and hope someone has an idea.
My problem is I need to do a VSAM Delete / Define. This is going to need to be done daily, but sometimes the VSAM file is not there, and the Delete returns a RC=08 causing the Job to abend. I do not care if the file is not there; I just need to delete it if it is there.
Does anyone know of a way to not return a RC=08 if the Delete fails? Please give an example
. DELETE YOUR.VSAM.TEST
.IDC3012I ENTRY YOUR.VSAM.TEST NOT FOUND
.IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42
.IDC0551I ** ENTRY YOUR.VSAM.TEST NOT DELETED
.IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
. SET MAXCC=0
. DEFINE -
. CLUSTER( -
. NAME(YOUR.VSAM.TEST) -
. KEYS(10 0) -
. RECSZ(30 60) -
. SPEED -
. REUSE -
. FSPC(0 0) -
. RECORDS(150)) -
. DATA( -
. NAME(YOUR.VSAM.TEST.DATA) -
. CISZ(4096)) -
. INDEX( -
.IDC0508I DATA ALLOCATION STATUS FOR VOLUME TSO095 IS 0
.IDC0509I INDEX ALLOCATION STATUS FOR VOLUME TSO095 IS 0
.IDC0181I STORAGECLASS USED IS TSO
.IDC0181I MANAGEMENTCLASS USED IS TSOREG
.IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
.IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
Thank You Dave, That is just what I was looking for.
I?m working on my first job as a programmer, hired as a junior contractor. What a difference between school and the real world. I?m a little disappointed in how they treat contractors here though; they offer almost no help and treat us as the lowest form of life. Well at least I?m earning experience that will help in my next job.
I will be posting more questions, I hope you don?t mind.
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