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

Different Lenght Files Handling in a COBOL program


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

New User


Joined: 29 Mar 2006
Posts: 2

PostPosted: Mon Apr 17, 2006 10:13 pm
Reply with quote

Hi,

My Requirement is: I want to write a generic COBOL program to work for any record Length file (PS), I should not change the File Definition layout.

I want to read the input file and do some logic and write on to the output file. Both the input and output file are of same length. I need to maintain only one two SELECT statements.

Is there any way to handle different record Length file with a single COBOL program.

Please suggest any suitable approach /sample program for my requirement.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Apr 18, 2006 4:43 am
Reply with quote

You can w/Ecobol but not w/the simplicity you want. Look at "environment variables" in the Ecobol manuals if you're interested.
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 Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top