Page 1 of 1

An issue of Cobol:Can we Display sth without OAH ?

PostPosted: Wed Mar 17, 2010 2:22 pm
by Trenfen
Can we Display sth without OAH ?

For Example:

First , Display the char 'A ',
Second , Display the char 'B'

The screen will show 'AB'
Not A
B

Re: An issue of Cobol:Can we Display sth without OAH ?

PostPosted: Wed Mar 17, 2010 5:03 pm
by Robert Sample
Personally, I don't know what "sth" or "OAH" mean -- could you explain, please?

Find a COBOL Language Reference manual and research the WITH NO ADVANCING option of the DISPLAY statement.

Re: An issue of Cobol:Can we Display sth without OAH ?

PostPosted: Wed Mar 17, 2010 8:29 pm
by Trenfen
Robert Sample wrote:Personally, I don't know what "sth" or "OAH" mean -- could you explain, please?

Find a COBOL Language Reference manual and research the WITH NO ADVANCING option of the DISPLAY statement.


Sth is something could be char or numeral , OAH is mean begin with a newline.

Thanks for your reply.

Re: An issue of Cobol:Can we Display sth without OAH ?

PostPosted: Wed Mar 17, 2010 9:10 pm
by Robert Sample
In COBOL terms, then, sth is an alphanumeric variable while OAH does not exist in COBOL since there is no such thing as a "newline" -- in fact, if you search the COBOL Language Reference manual, there are no occurrences of the term "newline" at all.

Do yourself a big favor and learn to use the COBOL terms -- otherwise you will not be understood by COBOL programmers, and you will be showing incredible disrespect for the more than 50 years of COBOL development of terminology. For example, COBOL does not have strings -- COBOL has variables. These variables can be numeric (in at least 4 different types as well as different lengths), alphabetic, national, or alphanumeric but they are never, ever "strings".

Re: An issue of Cobol:Can we Display sth without OAH ?

PostPosted: Thu Mar 18, 2010 6:35 am
by Trenfen
Robert Sample wrote:In COBOL terms, then, sth is an alphanumeric variable while OAH does not exist in COBOL since there is no such thing as a "newline" -- in fact, if you search the COBOL Language Reference manual, there are no occurrences of the term "newline" at all.

Do yourself a big favor and learn to use the COBOL terms -- otherwise you will not be understood by COBOL programmers, and you will be showing incredible disrespect for the more than 50 years of COBOL development of terminology. For example, COBOL does not have strings -- COBOL has variables. These variables can be numeric (in at least 4 different types as well as different lengths), alphabetic, national, or alphanumeric but they are never, ever "strings".


OK ,Thanks for your help .
I am a new guy. so I don't know about COBOL as well as enought ,but I would learn to use the COBOL terms, and use them next time.