Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to implement this logic

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
diwakar_rao

New User


Joined: 04 Mar 2007
Posts: 14
Location: Chennai

PostPosted: Tue Jul 01, 2008 12:01 am    Post subject: How to implement this logic
Reply with quote

Hi,

a)1 Input file as below

Empid Empname Prjcd Skill1 Skill2 Skill3 => field name
====================================
RN0001 AA 10001 COBOL JCL VSAM
RN0002 AB 10002 COBOL VSAM
RN0003 AC 10003 VSAM JCL

b) To write a pgm to create 3 Output files as follows

Output File 1 => for COBOL skillset

Empid Empname Prjcd Skills
==========================
RN0001 AA 10001 COBOL
RN0002 AB 10002 COBOL

Output File 2 => for JCL skillset

Empid Empname Prjcd Skills
==========================
RN0001 AA 10001 JCL
RN0002 AB 10002 JCL
RN0003 AC 10003 JCL

Output file 3 => for VSAM skillset

Empid Empname Prjcd Skills
==========================
RN0001 AA 10001 VSAM
RN0002 AB 10002 VSAM

Pls let me know the logic to implement to create the above output files ?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 12:20 am    Post subject:
Reply with quote

Hello,

Do not double post.

You repeated The Errors from your duplicate post here. The output follows no rules. . . It does not match the input.

The logic is to open the input file and the output files, then write the appropriate records into the output files.

You need to write some code and then post back here when there are questions/problems rather than ask the forum do your work for you.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Tue Jul 01, 2008 12:30 am    Post subject:
Reply with quote

Am I dreaming?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Jul 01, 2008 12:31 pm    Post subject:
Reply with quote

only if you think companies will stop outsourcing.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 02, 2008 12:56 pm    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
only if you think companies will stop outsourcing.
There are some guys working very hard to meet Your expectations Dick...

Mercy.. icon_smile.gif
Back to top
View user's profile Send private message
Antonio Barata
Warnings : 1

New User


Joined: 04 Apr 2007
Posts: 37
Location: Lisbon, Portugal

PostPosted: Wed Jul 02, 2008 1:50 pm    Post subject:
Reply with quote

Anuj D. wrote:
There are some guys working very hard to meet Your expectations Dick...

Mercy.. icon_smile.gif


I think you're right. But there are also some guys trying to make others work for them.
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 Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us