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
Dhanu0009
Posts: 7
Joined: Tue Sep 17, 2019 6:20 pm
Skillset: Visionplues,mainframe
Referer: social site

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

Terry Heinze
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Skillset: COBOL, JCL, ISPF.
Referer: While searching the Internet for answers.
Location: Richfield, MN, USA

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

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

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.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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


  • Similar Topics
    Replies
    Views
    Last post