IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc...
Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to implement this logic

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
View previous topic :: View next topic  
Author Message
diwakar_rao



Joined: 04 Mar 2007
Posts: 10
Location: Chennai

Posted: Tue Jul 01, 2008 12:01 am    Post subject: How to implement this logic  

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  
dick scherrer



Joined: 23 Nov 2006
Posts: 7923
Location: 221 B Baker St

Posted: Tue Jul 01, 2008 12:20 am    Post subject:  

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  
PeD



Joined: 26 Nov 2005
Posts: 293
Location: Belgium

Posted: Tue Jul 01, 2008 12:30 am    Post subject:  

Am I dreaming?
Back to top  
dbzTHEdinosauer



Joined: 20 Oct 2006
Posts: 1504
Location: germany

Posted: Tue Jul 01, 2008 12:31 pm    Post subject:  

only if you think companies will stop outsourcing.
Back to top  
Anuj D.



Joined: 22 Apr 2006
Posts: 1923
Location: Phoenix, AZ

Posted: Wed Jul 02, 2008 12:56 pm    Post subject:  

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

Mercy.. :)
Back to top  
Antonio Barata



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

Posted: Wed Jul 02, 2008 1:50 pm    Post subject:  

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

Mercy.. :)

I think you're right. But there are also some guys trying to make others work for them.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
Related Links