Display WITH NO ADVANCING

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
User avatar
sktg
Member
Posts: 5
Joined: Wed Dec 01, 2010 10:52 am
Location: india

Display WITH NO ADVANCING

Post by sktg » Wed Jan 05, 2011 12:33 pm

Im trying to display HELLO WORLD in the same line with 2 display statements using with no advancing statements.

Code:
Display "Hello" WITH NO ADVANCING.
Display "World".

But its not showing the two strings in the same line.
Is the WITH NO ADVANCING compiler specefic or am i making some mistake.

Thanks.
sktg

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Jan 05, 2011 1:23 pm

Look here: http://publib.boulder.ibm.com/infocente ... beg16b.htm and you'll understand, why this is happening.
Regards,
Anuj

User avatar
sktg
Member
Posts: 5
Joined: Wed Dec 01, 2010 10:52 am
Location: india

Post by sktg » Wed Jan 05, 2011 2:34 pm

Any idea how i can chnage the printer control characters or some sort of a get around solution to the problem
sktg

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Jan 05, 2011 5:28 pm

Why not use

Code: Select all

Display "Hello World".
Regards,
Anuj

User avatar
sktg
Member
Posts: 5
Joined: Wed Dec 01, 2010 10:52 am
Location: india

Post by sktg » Thu Jan 06, 2011 10:44 am

@Anuj:

I just want a alternative for WITH NO ADVANCING or to make it work. My aim obviously is not about printing Hello World.
sktg

Gyani
Member
Posts: 7
Joined: Sat Jan 08, 2011 1:28 pm
Location: HYB

Post by Gyani » Sun Jan 23, 2011 10:11 am

@SKTG As per my knowledge disply with WITH NO ADVANCING is not compiler specific.

Actually WITH NO ADVANCING is depend on where your o/p is goin, what dd name u gave in JCL.

Thanks,
Gyani.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others