Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ESDS organization and access mode is optional

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: ESDS organization and access mode is optional
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

Moderator Team Head


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

PostPosted: Thu Sep 18, 2008 6:02 pm    Post subject: Reply to: ESDS
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    Post subject:
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    Post subject:
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    Post subject:
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: 2285
Location: @my desk

PostPosted: Thu Sep 18, 2008 6:34 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Sep 18, 2008 7:20 pm    Post subject:
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    Post subject: Reply to: ESDS organization and access mode is optional
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

Site Director


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

PostPosted: Fri Sep 19, 2008 12:12 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Sep 19, 2008 5:04 pm    Post subject:
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

Senior Member


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

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

This thread seems to be related with this one..

http://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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us