Split the record in a file

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
ickgeek23
Member
Posts: 17
Joined: Tue Sep 13, 2011 7:57 am

Split the record in a file

Post by ickgeek23 » Thu Sep 15, 2011 7:09 pm

Hi to all,

I have one input file like

name1----------------------course1,course2,course3
name2----------------------course2,course3
name3----------------------

output file should be like
name1----------------------course1
name1----------------------course2
name1----------------------course3
name2----------------------course2
name2----------------------course3
name3----------------------

In this course name is of variable length (its length is not fixed), i need to solve with out writing any cobol program, i have to use some utility or EASYTRIEVE program ..... Can anybody help me on this....


Thanks in advance

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Sep 15, 2011 9:17 pm

So, you decided to post this again. . .

What sort of manager allows Easytrieve but not COBOL?

This would be trivial in COBOL. You'll need to loop thru the data if you use Easytrieve.

You should bne able to do what you want using PARSE in Syncsort.
Have a good one

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others