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

Read at end in cobol


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

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Aug 14, 2009 1:00 pm
Reply with quote

I have an query


Procedure division
READ-PARA
Read file1
at end move 10 to ws-status-file-1
move high values to ws-unload-file1

PROCESS-PARA

perform read para

some process using ws-unload-file-1



IF I have only one record in the file1, will high values be moved into the ws-unload-file-1
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 14, 2009 1:05 pm
Reply with quote

Have you tried this yourself and seen the result.
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: Fri Aug 14, 2009 7:28 pm
Reply with quote

Hello,

Quote:
will high values be moved into the ws-unload-file-1
Yes, when end-of-file (AT END) is detected. . .

At the top of the page is a link to "IBM Manuals". Look in the Language Reference for your version/release of cobol. If there is something in that manual about how the READ processes, post what you found and your doubt and someone will be able to clarify.
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Aug 14, 2009 8:09 pm
Reply with quote

The issue has been resolved
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Aug 17, 2009 1:01 pm
Reply with quote

And what was the solution?
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top