View previous topic :: View next topic
|
Author |
Message |
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
In the Select and Assign clause for ESDS, specifying the organization and access mode is optional or must? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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.. |
|
Back to top |
|
|
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
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 |
|
|
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Do a Listcat of your file and compare it with the attributes given in the program.
Thanks,
Arun |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|