COBOL User Groups COBOL COBOL Programming
Home | Search | COBOL Forums | Join COBUG | Change COBUG Account | Support us | Advertise with us | Contact us | About us | Site Map

 Programming Software:  DCD III - COBOL Program Documentation | RPV - Graphical COBOL Print


COBOL Jobs

 >  COBOL Job Listing
 >  COBOL Job Seekers
 >  Post COBOL Jobs
 >  Interview Questions
 >  Job Resources

COBOL Resources

 >  Blogs
 >  Books
 >  Computer Timeshare
 >  COBOL Examples
 >  Forums
 >  Knowledge Bases
 >  Magazines
 >  Manuals
 >  Portals
 >  Support
 >  Syntax/Commands
 >  Training
 >  Tutorials
 >  User Groups
 >  White Papers

COBOL Software

 >  Change Management
 >  COBOL Compilers
 >  Data Access
 >  Database
 >  Documentation
 >  COBOL Editors
 >  File Conversion
 >  GUI
 >  Legacy Migration
 >  Legacy Modernization
 >  Mainframe Security
 >  Report Generators
 >  Sort
 >  Terminal Emulators
 >  Test
 >  Tools
 >  Trans. Processing

COBOL Information

 >  Events
 >  News Articles
 >  Newsletters
 >  Product News
 >  COBOL Standards

COBOL Migration, COBOL Conversion - UV Software Ad
UV Software has a complete solution for conversion of mainframe MVS or VSE JCL, COBOL, & DATA batch systems to Unix, Linux, or Windows/SFU.

Over 50 successful conversions including global corporations & government agencies. Please see demo conversions & detailed explanations at: www.uvsoftware.ca

You may send samples of your files for conversion & return by email. You may download 1 free utility from: www.uvsoftware.ca/ libuvhd.htm

'uvhd' displays data files with packed/binary fields in 'vertical hexadecimal', and includes many interactive functions (browse, search, select, update, print, etc).

COBOL Report Generator

Print graphical COBOL reports in Windows with RPV Reports. Insert graphics (images, photos, logos, charts, etc.) into your COBOL reports to improve the print quality of your COBOL reports. See how RPV Reports can be used to preview or print graphical COBOL reports in Windows.

COBOL Documentation

Are your mainframe COBOL applications properly documented? DCD III is a comprehensive COBOL documentation and application understanding tool that will allow you to reduce COBOL maintenance, development, and mainframe migration costs. Learn more about how you can document and understand your mainframe COBOL applications with DCD III.

COBOL Email List Rental

You can reach a highly targeted, qualified, opt-in audience of COBOL users by renting the COBUG email list. Contact us today advertise@cobug.com for our email list rental rates.

Website Advertisement

Advertise on the COBUG website and reach tens of thousands of COBOL users. Increase your COBOL sales leads. Contact COBUG at advertise@cobug.com for advertising rates.
 

COBOL Forums

 
COBOL Language [ return ]
From Message
gcalbp

 Email

8/06/2009
22:06:50
Subject: READ INTO


Message:
what is the main difference between read filea into fileb and read filea next record into fileb..thanks


jsa

8/06/2009
22:28:19
RE: READ INTO


Message:
Neither one is possible.

You do not read a file into a file.

You may read a file into a record.

READ (with no other clauses) is for flat files.
READ NEXT is for indexed files, such as ISAM.

READ NEXT says that even tho the file is indexed, you do not want to use the key to read a selected record, but rather you just want the next record in the file at the current record pointer (cursor) position.


gcalbp

8/06/2009
22:40:56
RE: READ INTO


Message:
DO U MEAN TO SAY THAT THE CURRENT RECORD POINTER POSITION IS THE LAST READ ERCORD OR THE NEXT RECORD FROM THE LAST ONE THAT YOU JUST HAVE READ...LETS SAY:
U HAVE NUMBER1 AND YOU SEARCH FOR NUMBER 1 IN THE LOOKUP FILE..THEN U FOUND THE NUMBER 1 IN THE LOOKUP..SO YOU WILL NOW LOOK AT NUMBER2 IN THE LOOKUP FILE..WHERE WILL I START SEARCHING..AT THE LAST RECORD READ (WHICH IS THE NUMBER1) OR THE NEXT RECORD IN THE LOOKUP FILE(AFTER THE NUMBER1)..
PLEASE HELP ME UNDERSTAND THIS..THANKS


jwl

8/07/2009
00:39:25
RE: READ INTO


Message:
Hi.
These are records with the following keys:

Number 0001
Number 0002
number 0003
.
.
.
.
.
Number 1999

Assume that the file is defined as TEST-FILE.

If the key is defined as TEST-KEY then you would move the key for the record you want to access to TEST-KEY and then read the file.

eg. MOVE "Number 0002" TO TEST-KEY.
READ TEST-FILE KEY IS TEST-KEY.
.
.
.

The record pointer (file location) is pointing to the record with the key 'Number 0002'.

If you used the read NEXT option you will get the record with key 'Number 0003' and if you used the read PREVIOUS option you will get the record with key 'Number 0001'.

Hope this helps you understand.

Regards

James


P 1  Next Page >>


 
[ Go to Top of Page ]
COBOL 50 Years - Micro Focus Ad
Mainframe Electronic Information Delivery Solutions - CASI Ad
COBOL Mainframe Solutions - Compuware Banner Ad
COBOL to Java - Veryant Ad
Micro Focus COBOL - MicroFocus Ad
COBOL XML - XMLThunder Ad
COBOL Tools, Graphics - Flexus Ad
System z - Enterprise Modernization, PKS Software GmbH Banner Ad
COBOL Legacy Mainframe Migration - Transoft Ad
Mainframe Legacy Data Access - Arbutus Software Ad
netCOBOL Compiler, Legacy Mainframe Migration - Alchemy netCOBOL Ad
COBOL Migration, Application - MigrationWare Ad
COBOL, Modernization, Application - SeaSoft Ad
COBOL Code, Source Code - Source Recovery Company Ad
COBOL Legacy CICS Mainframe Migration - MacKinney Systems Ad
COBOL Sort, COBOL Tools - CoSort Ad





COBOL Job Seekers
COBOL Jobs Looking for a COBOL job? Submit your resume here and have it viewed by employers and recruiters hiring for COBOL positions.

Employers & Recruiters
Post COBOL Jobs Do you need to fill a COBOL position? Post your COBOL jobs here and find the most qualified COBOL candidates to fill your COBOL position.

Call for Articles
COBOL Newsletters Articles are being sought for the COBUG newsletters.
Will you help us in our efforts to provide newsletters for the COBOL community at large? Contribute to the COBUG newsletters! Answer this call for COBOL and related legacy articles.

Local COBOL User Groups
COBOL User Group Check out the list of local COBOL user groups from around the world and join a user group near you.


Call for User Group Leaders!
COBOL User Groups Get Involved! We are looking for user group leaders to help organize and coordinate a local COBOL user group.

Join COBUG!
COBOL User Groups Become a part of the COBUG community today. Join Now ...


COBOL Forums
COBOL Forum Try our forums for help!
Let the COBUG members help you. Post your issues!



[Go to Top of Page]


COBOL (c) Information Computing Services. All Rights Reserved. COBOL