For Programmers: Free Programming Magazines  


Home > Archive > Cobol > May 2005 > output question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author output question
funarcade@gmail.com

2005-05-19, 8:55 pm

Hi all,

How do you output a sequential file with a carriage return and line
feed at the end of each record.

Thank you for your help in advance

Rick Smith

2005-05-19, 8:55 pm


<funarcade@gmail.com> wrote in message
news:1116533412.487952.42300@f14g2000cwb.googlegroups.com...
> Hi all,
>
> How do you output a sequential file with a carriage return and line
> feed at the end of each record.


It depends on the compiler. Some allow for
ORGANIZATION IS LINE SEQUENTIAL
to accomplish what you are requesting. Tell us
what compiler you are using and what OS then
someone may be able supply a definite answer.



Howard Brazee

2005-05-19, 8:55 pm


On 19-May-2005, funarcade@gmail.com wrote:

> Hi all,
>
> How do you output a sequential file with a carriage return and line
> feed at the end of each record.
>
> Thank you for your help in advance


What is your environment?
Richard

2005-05-19, 8:55 pm

> How do you output a sequential file with a carriage return and line
> feed at the end of each record.


MOVE x"0D0A" TO End-of-Record

(or LINE SEQUENTIAL if available as already mentioned).

funarcade@gmail.com

2005-05-20, 8:55 pm

Thank you for all the responses.

I am not sure what compiler we are using. The cobol software is Data
General I Cobol. We are running cobol in dos under Windows 98. To run
it in Windows 98 we are using a software called Choice! by Wildhare

http://www.wildharecomputers.com/company.htm

JJ

2005-05-23, 3:55 am

ORGANIZATION IS LINE SEQUENTIAL in the SELECT should be what you need in DG
ICOBOL.

You can also use ASSIGN TO DISPLAY "filename".


<funarcade@gmail.com> wrote in message
news:1116616269.474330.130890@g47g2000cwa.googlegroups.com...
> Thank you for all the responses.
>
> I am not sure what compiler we are using. The cobol software is Data
> General I Cobol. We are running cobol in dos under Windows 98. To run
> it in Windows 98 we are using a software called Choice! by Wildhare
>
> http://www.wildharecomputers.com/company.htm
>



JJ

2005-05-27, 8:55 pm

ORGANIZATION IS LINE SEQUENTIAL in the SELECT should be what you need in DG
ICOBOL.

You can also use ASSIGN TO DISPLAY "filename".


<funarcade@gmail.com> wrote in message
news:1116616269.474330.130890@g47g2000cwa.googlegroups.com...
> Thank you for all the responses.
>
> I am not sure what compiler we are using. The cobol software is Data
> General I Cobol. We are running cobol in dos under Windows 98. To run
> it in Windows 98 we are using a software called Choice! by Wildhare
>
> http://www.wildharecomputers.com/company.htm
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com