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

Copying from PS to VSAM


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: Fri Sep 19, 2008 12:00 pm
Reply with quote

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
View user's profile Send private message
Apeksha

New User


Joined: 21 May 2008
Posts: 37
Location: Mumbai

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

Hi,

What you have specified in the JCL as your output dataset?
Check that first.
Back to top
View user's profile Send private message
Apeksha

New User


Joined: 21 May 2008
Posts: 37
Location: Mumbai

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

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
View user's profile Send private message
Guru Prasath

New User


Joined: 04 Jun 2008
Posts: 36
Location: Chennai

PostPosted: Fri Sep 19, 2008 1:10 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Sep 19, 2008 1:14 pm
Reply with quote

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
View user's profile Send private message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Fri Sep 19, 2008 1:24 pm
Reply with 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??

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
View user's profile Send private message
Durgesh Singh

New User


Joined: 15 Sep 2008
Posts: 12
Location: Pune

PostPosted: Fri Sep 19, 2008 2:55 pm
Reply with quote

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
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 11:34 am
Reply with quote

You're welcome, good to hear that it's working.. icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Sat Sep 20, 2008 6:37 pm
Reply with quote

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
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top