IBMMainframes.com

Quick References for IBM Mainframe Programming

COBOL VSAM status codes

 

VSAM EXTENDED - RETURN CODES

 

00

Successful completion

04

Another request is active

08

There is a logical error

12

There is a physical error

 

 

 

 

VSAM EXTENDED - FUNCTION CODES

 

0

Accessing base cluster, no problem

1

Accessing base cluster, may be a problem

2

Accessing alternate index, no problem

3

Accessing alternate index, may be a problem

4

Upgrade processing, no problem

5

Upgrade processing, may be a problem

 

 

 

VSAM EXTENDED - FEEDBACK CODES

 

PHYSICAL-ERROR.

 

          Use this when there is RC 12 in vsam-extended-return-code

 

004

Read error on data

008

Read error on index

012

Read error in sequence set

016

Write error on data

020

Write error on index

024

Write error in sequence set

 


 

LOGICAL-ERROR.

 

              Use this when there is RC 8 in vsam-extended-return-code

 

004

Read past end of file

008

Duplicate key

012

Key sequence error

016

Not found

020

Control interval in use by other job

024

Volume cannot be mounted

028

Unable to extend dataset

032

RBA not found

036

Key is not in a defined key range

040

Insufficient virtual storage

064

No available strings

068

Open did not specify proc type

072

Key access to ESDS or RRDS

076

Attempted insert to wrong type dataset

080

Attempted delete from ESDS

084

Optcd loc for put request

088

Position not established

092

Put without get for update

096

Trying to change primary key

100

Trying to change LRECL

104

Invalid RPL options

108

Invalid LRECL

112

Invalid key length

116

Violated load mode restriction

120

Wrong task submitting request

132

Trying to get spanned rec in loc mode

136

Trying to get spanned rec by address

140

Inconsistent spanned rec

144

Alt index pointer with no matching

148

Exceeded max pointers in alt index rec

152

Insufficient buffers available

156

Invalid control interval

192

Invalid relative rec number

196

Attempted addressed request to RRDS

200

Invalid access through a path

204

Put in backward mode

208

Invalid ENDREQ macro

252

Record mode processing is not allowed

 

Home | Mainframe Wiki | JCLs | Mainframe Forum