Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Writing a new COBOL Program for Datawarehouse

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Writing a new COBOL Program for Datawarehouse
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: 3158
Location: Tucson AZ

PostPosted: Sun Dec 17, 2006 1:57 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us