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

Writing a new COBOL Program for Datawarehouse


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amit Manas Dubey
Currently Banned

New User


Joined: 15 Dec 2006
Posts: 22
Location: Mumbai

PostPosted: Sun Dec 17, 2006 1:12 am
Reply with quote

Hi

I have to write a new COBOL program which uses a File as INPUT and generates another file as O/P.

The I/P file is abt 26000 bytes long and most of the fields are defined as COMP-3. From this I/P file, I have to take selected fields and move to the O/P file after expanding the compressed fields.(COMP-3).

I want to understand the logic best suited for writing this program. Will an Easytrieve be a better option ?

I am more concerned about the size of the O/P file since we need to expand all compressed fields. Pls advise from a performance perspective as well.

Amit
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Sun Dec 17, 2006 1:57 am
Reply with quote

EZT will work, heck, sort copy will work.
The least labor intensive way I can think of (good programmers are inherently lazy) is COBOL.
You must already have a copybook or copyable image of the record description, duplicate is and find/replace the comp3's out of there.
Input file with the comp3's and output file without.
Open both
perform till EOF
read in
move corresponding
write out
end perform
close both
EOJ
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 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