IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Creating a pipe delimited file from COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dmanwi

New User


Joined: 19 Mar 2016
Posts: 1
Location: USA

PostPosted: Sat Mar 19, 2016 10:40 pm
Reply with quote

I need to create a pipe-delimited file as output. The file will be sent to a server. Input is a sequential file. In some cases I have used FOCUS to output the file but I an concerned that FOCUS uses more system resources than COBOL. LRECL will be approx 500 bytes and Record count varies from 100,000-700,000 records.

Is there a COBOL statement or utility that will output a pipe delimited file? Or should I just build an output copybook with pipes between each field?

Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Mar 20, 2016 12:59 am
Reply with quote

Quote:
Or should I just build an output copybook with pipes between each field?
It's tedious but not a very difficult thing to do. COBOL has no built-in support for pipe-delimited data sets.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top