View previous topic :: View next topic |
Author |
Message |
pkarthik@email.com Beginner
Joined: 29 Mar 2005 Posts: 34 Topics: 18 Location: Canada
|
Posted: Thu Jun 08, 2006 8:36 am Post subject: How to Verify a file using FASTVSAM |
|
|
hi,
Our job is always abending stating that file is used by other user.our analysis failed to identify the contending job or user.We felt using a Verfiy Statement will tell us really it is used by other user/job or file is not properly closed by some other job/User.
VERIFY FILE(OUTDD)
IF LASTCC = 04 THEN
SET MAXCC = 00
REPRO
INFILE(INDD)
OUTFILE(OUTDD)
REPLACE
IF LASTCC = 04 THEN
SET MAXCC = 00
this is the message we receive.
AMS101I START FASTVSAM EXECUTION
AMS250I FASTVSAM NOGO, CODE = 10 - VERIFY COMMAND NOT SUPPORTED BY FASTVSAM
AMS160I PASSING CONTROL TO OLDAMS ...
VERIFY FILE(OUTDD)
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
AMS119P PERFORMANCE: .60 ELAPSED, .01 TCB CPU
AMS189I END OF COMMAND, CONDITION CODE = 0
IF LASTCC = 04 THEN -
SET MAXCC = 00
REPRO -
INFILE(INDD) -
OUTFILE(OUTDD) -
REPLACE _________________ For any type of complex problems there will be multiple easiest solutions |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
pkarthik@email.com Beginner
Joined: 29 Mar 2005 Posts: 34 Topics: 18 Location: Canada
|
Posted: Thu Jun 08, 2006 9:08 am Post subject: |
|
|
We have a doubt whether some other job ran before opened the file and left it without closing.
AMS101I START FASTVSAM EXECUTION
REPRO -
INFILE(INDD) -
OUTFILE(OUTDD) -
REPLACE
AMS106F INDD: DEV=DISK VOL=TSTG72 DSN=AMD.TEST.TEMP.SORT.AMDN435
DCB=(973 27,244 0 FB EXCP)
AMS276A VSAM OPEN ERROR, CODE = 168, CLUSTER = XAMDV.TEST.MASTER.AMDK435
AMS250I FASTVSAM NOGO, CODE = 20 - UNSUPPORTED OPTION OR ERROR IN FASTVSAM COM
AMS160I PASSING CONTROL TO OLDAMS ...
REPRO -
INFILE(INDD) -
OUTFILE(OUTDD) -
REPLACE
IDC3300I ERROR OPENING XAMDV.TEST.MASTER.AMDK435
IDC3351I ** VSAM OPEN RETURN CODE IS 168 _________________ For any type of complex problems there will be multiple easiest solutions |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Jun 08, 2006 9:19 am Post subject: |
|
|
pkarthik@email.com,
A return code of 168 means that The data set is not available for the type of processing specified, or an attempt was made to open a reusable data set with the reset option while another user had the data set open.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
pkarthik@email.com Beginner
Joined: 29 Mar 2005 Posts: 34 Topics: 18 Location: Canada
|
Posted: Thu Jun 08, 2006 9:29 am Post subject: |
|
|
Hi Kolusu,
Whether this error could occur when some user or job failed to close the file due to some error that hapened in some other job. _________________ For any type of complex problems there will be multiple easiest solutions |
|
Back to top |
|
|
|
|