COBOL program logic to copy VB to VB and check the Delimitor



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

COBOL program logic to copy VB to VB and check the Delimitor

Postby Dhanu0009 » Fri Sep 20, 2019 3:25 pm

Hi Team,
I have a requirement to copy the VB file of rec-length:4580 to VB file based on Delimitor count upto 95 only from each record even if input record has more that delimitor fields.Each field is associated with the | delimitor.need to truncate the fields after 95th delimitor.Can you please help

Infile:
1|2|3|...………..|95|96|...…|9999

Output:
1|2|3|...….|95
Dhanu0009
 
Posts: 7
Joined: Tue Sep 17, 2019 6:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL program logic to copy VB to VB and check the Delim

Postby Terry Heinze » Fri Sep 20, 2019 6:34 pm

Why did you start this topic while it's still being discussed at the sort forum?
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: COBOL program logic to copy VB to VB and check the Delim

Postby steve-myers » Fri Sep 20, 2019 8:13 pm

Well, it would seem the TS regards the aid he has received in Easytrieve (where this foolishness started) and/or DFSORT as inadequate. It seems to me the TS wants a completed solution and expects to get one here.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: COBOL program logic to copy VB to VB and check the Delim

Postby NicC » Sat Sep 21, 2019 2:27 am

Until you have responded satisfactorily to the last question posed in your DFSort topic this topic is locked.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post