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
 
Copying from PS to VSAM

 
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: Fri Sep 19, 2008 12:00 pm    Post subject: Copying from PS to VSAM
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Copying from PS to VSAM
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

Senior Member


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

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

Senior Member


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

PostPosted: Sat Sep 20, 2008 11:34 am    Post subject:
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: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Sat Sep 20, 2008 6:37 pm    Post subject:
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    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 String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm

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