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

How to open a FLAT file in Easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Thu Dec 18, 2008 12:42 pm
Reply with quote

Dear All,
Do we have separate OPEN for VSAM and Flat file in Easytrieve.
I have a program which reads a VSAM file.
When I copied the VSAM file to a flat file and used the same easytrive prog with my new Flat file
its giving an error A011 VSAM - OPEN ERROR- CODE 188(BC)

Can anyone help me in this... How shall I open a FLAT file.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Dec 18, 2008 2:16 pm
Reply with quote

Hello,

Just as in COBOL, you cannot use a vsam file definition for a flat file.

If you change the easytrieve file definition to match the flat file, it should work.
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Thu Dec 18, 2008 2:21 pm
Reply with quote

Hi,

Did you check reference manuls ?

Incase of sequential files we need to use FB instead VS - File declaration

To access those sequential dataset, we have 2 approaches
1) Use JOB (INPUT) for auto read statement
2) You can use GET statement to manually read recs

Try reading manuals, you will get proper syntax for these.

Thanks,
-Kapil.
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Mon Dec 22, 2008 3:29 pm
Reply with quote

Thanks all ........
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top