Joined: 16 Apr 2006 Posts: 16 Location: BeiJing, China
The problem occurred in our production Env. We have a VSAM file, the file only kept a record in the past. That day, user removed the record from the file through online transaction.
Batch will perform the following steps for the empty file:
1. Repro its online file(PRD.XXX.PAID.OL.CLUS) to batch file(PRD.XXX.PAID.CLUS) before batch begin
2. Repro its batch file(PRD.XXX.PAID.CLUS) to online file(PRD.XXX.PAID.OL.CLUS) after batch end
Step 1 performed successfully, but step 2 performed abend.
I feel doubt why step 1 performed sucessfully when input file is empty?
Hi,
I tried myself creating a empty VSAM file copied into Flat file. Then copied back to VSAM. I used IEBGENER.
It worked perfectly fine.
Can you send me the exact JCL? (Both of them) lemme see if I can help.
Result:
First job:
REPRO INFILE(TTNAWI) OUTFILE(TTNAWO)
IDCTTS SYSTEM SERVICES
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
Second Job:
REPRO INFILE(TTNAWI) OUTFILE(TTNAWO)
IDC3300I ERROR OPENING PRD.LTT.TTNAW.CLUS
IDC3351I ** VSAM OPEN RETURN CODE IS 160
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
if the VSAM is empty. Normally it gives 160 error.(160 menas Empty Data set)
we can repro the empty file by using IDCAMS it gives MAX CC=12. Because EMPTY Data set not Copied into another file.