Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

confusion in READ INTO stmt

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
dipanshu

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Wed Feb 08, 2006 4:48 pm    Post subject: confusion in READ INTO stmt
Reply with quote

READ FILENAME INTO WS-REC

confusion - will it move corrosponding
or simple move

Thanks,
Dipanshu
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Feb 08, 2006 5:02 pm    Post subject: Re: confusion in READ INTO stmt
Reply with quote

HI,

Quote:
READ FILENAME INTO WS-REC

confusion - will it move corrosponding
or simple move

Thanks,
Dipanshu


It is better if you can paste here structure of FILENAME and WS-REC.

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

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Wed Feb 08, 2006 5:58 pm    Post subject:
Reply with quote

file structure

01 file1
03 x1 pic x(3) value 'the'
03 x2 pic x(3) value 'sun'
03 x3 pic x(3) value 'shi'

01 ws-rec
03 w-x1 pic x(3)
03 filler pic x(1) value ','.
03 w-x2 pic x(3)
03 filler pic x(1) value ','.
03 w-x3 pic x(3)

Read file1 into ws-rec.
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Wed Feb 08, 2006 5:59 pm    Post subject: Re: confusion in READ INTO stmt
Reply with quote

hi,

it is a group move.. not an elementary or move corrosponding

total record move to ws-rec
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Feb 08, 2006 7:05 pm    Post subject: Re: confusion in READ INTO stmt
Reply with quote

Hi,


I alsoe agree with raghunathns

As it is group move, it will move all total record.

Regards
Rupesh
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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Read of TDQ fails in LENGERR Tracy Hansen CICS 10 Wed Apr 05, 2017 12:10 am
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts To read from Zeke scheduler p.anbuselvan CLIST & REXX 5 Thu Mar 31, 2016 1:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us