Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Hi All -- New to forum. Just gettin

Hi All -- New to forum. Just gettin

Hi All -- New to forum. Just gettin

Hi All -- New to forum. Just getting started on brushing off some of my Cobol coding skills. I have GNUcobol install on my Win 10 PC. I've been writing a few simple programs using EditRocket. I'm an old mainframe programmer so getting used to the PC environment. One program I am working on:
1. Input CSV file
2. Unstring it
3. Write to .txt file

Issue: when i write the output record, it is displaying in the output file as one continuous line. I've tried a few different options but can not get the next record to write on a new line. Any help is appreciated. Thank you!

RE: Hi All -- New to forum. Just gettin

What are you using to view the output file? It is important to note that Windows uses a <CR> <LF> (carriage return line feed - two characters) at the end of line. Other systems, like Unix/Linux use <NL> (newline) - one character which does both carriage return and line feed. You may need to change some options on the file viewing software to detect the <CR><LF> or <NL> characters, which are non-printable characters and will not display on most ordinary viewers. You can also look at the file using a HEX editor - to make sure the end of line character(s) are present. You can search the net to find one or more free ones, or free trials.

advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity

RE: Hi All -- New to forum. Just gettin

for viewing files the following are your best options
vim - unix style editor - https://www.vim.org/
notepad ++ - all purpose editor - https://notepad-plus-plus.org/download/v7.7.1.html
HxD - hex editor - https://download.cnet.com/HxD-Hex-Editor/3000-2352...
and for COBOL formatted files (and others) - recordeditor - https://sourceforge.net/projects/record-editor/


Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: Hi All -- New to forum. Just gettin

I was using notepad. I downloaded notepad++ and all good. Thank you!

RE: Hi All -- New to forum. Just gettin


I prefer the ispf mainframe look-alike editor with all kinds of commands. It takes you some time to get used to it, but in the end you will be much more productive.

You can visit https://www.commandtechnology.com/ to have an idea.

There are situations where the ISPF editor helps you to do something in minutes where less experienced users need more than a week to get the same result.

Much pleasure!


RE: Hi All -- New to forum. Just gettin

Good info about text editors and such!

Just as a possibly interesting side note, when reviewing the original issue posted here, my very first thought would have been to look at the SELECT clause definition of the output file in the COBOL program, to make sure that the output file is described as LINE SEQUENTIAL and not just SEQUENTIAL.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close