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

Can we read file into two identifier


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Jun 28, 2005 4:50 pm
Reply with quote

Hi,

Can we read a single file into two different identifier at same time

we generally use

READ A65EM7I2 INTO IN1-RECORD
But i want to read this same file into two identifier i m trying following code

READ A65EM7I2 INTO IN1-RECORD IN-RECORD

where IN1-RECORD and IN-RECORD are two identifier.

It is giving me error Invalid IN-RECORD.

Please help me on this.

Thanks

Rupesh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jun 28, 2005 10:36 pm
Reply with quote

Hi Rupesh,

No, you can't do that, but you can move the 1st to the 2nd after the READ.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top