IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ESDS organization and access mode is optional


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Thu Sep 18, 2008 5:41 pm
Reply with quote

In the Select and Assign clause for ESDS, specifying the organization and access mode is optional or must?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 18, 2008 6:02 pm
Reply with quote

What does the manual say?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 18, 2008 6:14 pm
Reply with quote

Quote:

In the Select and Assign clause for ESDS, specifying the organization and access mode is optional or must?


Please try removing it and let us know too.. icon_smile.gif icon_smile.gif icon_smile.gif
Back to top
View user's profile Send private message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Thu Sep 18, 2008 6:23 pm
Reply with quote

It says that it is optional. I am trying to copy from a ps to vsam ESDS through a program which is getting compiled successfully. But while running the job, it is giving SOC-4 and open status 39 for the VSAM. It is giving file attribute mismatch in the select and assign clause.
Back to top
View user's profile Send private message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Thu Sep 18, 2008 6:30 pm
Reply with quote

Sambhaji! it is working without including the organization and access mode. But what is the solution for my query? How to resolve this "file attribute mismatch" issue?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Sep 18, 2008 6:34 pm
Reply with quote

Do a Listcat of your file and compare it with the attributes given in the program.

Thanks,
Arun
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 18, 2008 7:20 pm
Reply with quote

Durgesh, where does it say "optional" in the manual:
Quote:
___ Format--VSAM sequential file _______________________________________
| |
| >>__ _________ __AS- __name_________________________________________>< |
| |_label- _| |
| |
|________________________________________________________________________|

label-
Documents (for the programmer) the device and device class to which a file is assigned. It must end in a hyphen; the specified value is not otherwise checked. It has no effect on the execution of the program. If specified, it must end with a hyphen.

S-
For QSAM files, the S- (organization) field can be omitted.

AS-
For VSAM sequential files, the AS- (organization) field must be specified.

For VSAM indexed and relative files, the organization field must be omitted.
I tend to read "must be specified" as not optional -- you may be interpreting it differently.
Back to top
View user's profile Send private message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Fri Sep 19, 2008 11:32 am
Reply with quote

The error is
"IGZ0200W A FILE ATTRIBUTE MISMATCH WAS DETECTED. FILE OUT-ESDS-FILE IN PROGRAM ESDS01 WAS DEFINED AS A PHYSICALSEQUENTIAL FILE AND THE FILE SPECIFIED IN THE ASSIGN CLAUSE WAS A VSAM DATA SET. "

Please let me know what is the solution for this issue?

Why does it say that the file in program was defined as a physical sequential file?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 19, 2008 12:12 pm
Reply with quote

Hello,

Please post your SELECT/ASSIGNs, the FDs and the OPENs from this program as well as the jcl to run this program. Posting the attributes of the files will also possibly help.

To help you, we need info to work with.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 19, 2008 5:04 pm
Reply with quote

Quote:
Why does it say that the file in program was defined as a physical sequential file?
Maybe because the ASSIGN is not to AS-DDNAME? As Dick said, post some information that we can look at.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Sep 20, 2008 2:51 am
Reply with quote

This thread seems to be related with this one..

ibmmainframes.com/viewtopic.php?t=34436&highlight=
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
Search our Forums:

Back to Top