View previous topic :: View next topic
|
Author |
Message |
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
I am getting SOC4 while running a job which calls a program ESDS01 which is coded to copy from ps to vsam ESDS.
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 |
|
|
Apeksha
New User
Joined: 21 May 2008 Posts: 37 Location: Mumbai
|
|
|
|
Hi,
What you have specified in the JCL as your output dataset?
Check that first. |
|
Back to top |
|
|
Apeksha
New User
Joined: 21 May 2008 Posts: 37 Location: Mumbai
|
|
|
|
You have mentioned that your module copies a PS to VSAM file and
the error states that the output dataset you have specified is PS and not a VSAM file |
|
Back to top |
|
|
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Please give the SELECT clause which you are using in the program to read the VSAM file?
Also, check whether the assign clause specified with prefix AS- for that VSAM file.... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Durgesh,
May be you forget to "append" AS- in your SELECT clause..
SELECT ESDS-FILE ASSIGN TO AS-ESDSDD.
where ESDSDD is DD name is for ESDS-FILE. |
|
Back to top |
|
|
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
What is the cause of such an error. Why does it say that the the output dataset mentioned in the program is a PS and not a vsam??
In the JCL the output dsn is a VSAM as it should be, but why does it say that the LOGICAL file corresponding to the select statement is a ps and not a vsam.
Please help me out........... |
|
Back to top |
|
|
Durgesh Singh
New User
Joined: 15 Sep 2008 Posts: 12 Location: Pune
|
|
|
|
Yes, by mistake I forgot to put AS before the DD name.........now it's working fine..........
Thanks a lot for your valuable support and time........... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome, good to hear that it's working.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
What is the cause of such an error. Why does it say that the the output dataset mentioned in the program is a PS and not a vsam?? |
The logical file is how COBOL understands the file. Without the AS- COBOL understood the file to be a sequential file; when the OPEN was attempted and the OPEN routine discovered the file is VSAM and not sequential, the error message was generated. Until the OPEN occurs, the only information COBOL has about the file is what you told it in the SELECT and FD statements; if these statements do not match the actual file you usually get a file status 39 on OPEN. |
|
Back to top |
|
|
|