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 | OpenSCL - Batch COBOL Migration | 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
 >  COBOL Training
 >  COBOL 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
 >  COBOL Sort
 >  Terminal Emulators
 >  COBOL Test
 >  COBOL 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 Services

Travancore Software Solutions offers winning mainframe COBOL strategies for:

- SOA Enablement
- Mainframe COBOL
  Migration
- Mainframe COBOL
  Application
  Development
- Mainframe Application
  Support & Maintenance
- Enterprise Application
  Integration

Contact us at sales@travancore.net.

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 Migration

Migrate your batch mainframe COBOL applications to open systems platforms, such as Windows, AIX and Linux, with OpenSCL. OpenSCL is a mainframe emulator that runs on a PC or server with Windows and Unix-based operating systems. OpenSCL is your batch mainframe COBOL applications migration solution.

Advertise With COBUG

Advertise on the COBOL User Groups (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
arien05

 Email

5/21/2008
07:51:09
Subject: How to parse variable length records


Message:
I have to read a variable length file and create a report. I have to use the parsing technique (reference modification)

my input file looks like

123&jack&100&80&90
234&josephine&77&88&99

& is the delimiter.
the first field is the Student Number
Second field - Name
third field - mark1
fourth field - mark2
fifth field - mark3

i have to read these fields using parsing technique and create a report. can anyone help me please?


jkriel

5/21/2008
09:27:14
RE: How to parse variable length records


Message:
Hi

You can look up unstring and unstring the record into the different fields.


Tim Bonham

5/21/2008
20:37:11
RE: How to parse variable length records


Message:
I would do this by running the input file thru DFSORT, which has a parse option that will convert this into a file of fixed-length fields. Then run that file thru your COBOL program to generate the report.


jeyaraj

5/24/2008
10:10:32
RE: How to parse variable length records


Message:
In input-output section declare the file as line-sequential file like follows.

input-outputsection.
file-control.
select input-file assign to <file-name>
organization is line sequential.

In data division keep the record size as the maximum size of record available in your file like follows.

data division.
file section.
fd input-file
01 input-record pic x(120).

In working storage have an entry like following

working-storage section.
01 ws-record.
03 ws-field1 pic 9(03).
03 ws-field2 pic x(10).

and so on as per your need

Now open your file and read the record one by one. On successful read, using the following command.

unstring input-record delimited by '&' into
ws-field1,ws-field2,ws-fiel3......


Hope this will help you..


 
[ Go to Top of Page ]
COBOL Documentation, Application Mapping - EZ Legacy Ad
COBOL Documentation, Application Understanding - EvolveWare Ad
COBOL XML - RainCode Ad
COBOL Legacy CICS Mainframe Migration - MacKinney Systems Ad
Legacy COBOL Data Access - Connx Solutions Ad
COBOL Legacy Mainframe Migration - Transoft Ad
COBOL Documentation - Relativity Ad
COBOL Migration - Ateras Ad
COBOL, Modernization, Application - SeaSoft Ad
COBOL Software - Macro4 Ad
COBOL Data Access ODBC - Parkway Ad
COBOL Tools, Graphics - Flexus Ad
RM COBOL Compiler, Web Connectivity  - Liant Software Ad
COBOL Sort, COBOL Tools - CoSort Ad
Fujitsu COBOL Compiler, Legacy Mainframe Migration - Fujitsu netCOBOL Ad
COBOL XML - XMLThunder Ad
COBOL Code, Source Code - Source Recovery Company Ad





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!



COBOL Jobs
COBOL Jobs Employers submit your COBOL job openings. Job seekers submit your resumes.

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