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

Printing of first and last record


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

New User


Joined: 10 Jun 2007
Posts: 7
Location: india

PostPosted: Mon Jul 09, 2007 9:15 pm
Reply with quote

How can I print the first and last values of a sequential files?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 9:22 pm
Reply with quote

Print the first record and print the last one.

open
read
print
perform read into until eof
print
close
Back to top
View user's profile Send private message
mnaaz

New User


Joined: 10 Jun 2007
Posts: 7
Location: india

PostPosted: Mon Jul 09, 2007 10:29 pm
Reply with quote

Thanku very much. I will try this, if I will face any difficulty then i will take your help.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jul 10, 2007 12:06 am
Reply with quote

Give it a try and let us know how you did.......
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top