MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Verify a file using FASTVSAM

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pkarthik@email.com
Beginner


Joined: 29 Mar 2005
Posts: 34
Topics: 18
Location: Canada

PostPosted: Thu Jun 08, 2006 8:36 am    Post subject: How to Verify a file using FASTVSAM Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Jun 08, 2006 9:02 am    Post subject: Reply with quote

pkarthik@email.com,

Verify command is NOT supported by FASTVSAM.

btw verify command does not tell who is hold the dataset


Check this link which explains in detail about finding out contention.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1412&highlight=enq


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pkarthik@email.com
Beginner


Joined: 29 Mar 2005
Posts: 34
Topics: 18
Location: Canada

PostPosted: Thu Jun 08, 2006 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Jun 08, 2006 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
pkarthik@email.com
Beginner


Joined: 29 Mar 2005
Posts: 34
Topics: 18
Location: Canada

PostPosted: Thu Jun 08, 2006 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group