View previous topic :: View next topic
|
Author |
Message |
sb lathiya
New User
Joined: 04 Jul 2012 Posts: 2 Location: India
|
|
|
|
How can we display the string vertically in spool ? string length is 28 bytes.
eg. Input - my name is ethn matthew hunt
Output -
m
y
n
a
.
.
.
.
.
h
u
n
t |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
from Your profile ...
Skills: JCL,COBOL,DB2,VSAM,CICS,Xpeditor,Chngeman,fileaid,QMF
it is strange that with a set of skills like that You' d need to ask such a simple question. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You just DISPLAY/WRITE each byte, one-at-a-time. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
There is no short-cut function of doing it in COBOL, AFAIK; you've to write a bit of code, as Bill has indicated to. Said that, have you tried something and it did not work? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Turn your screen 90 degrees.
Or your head. |
|
Back to top |
|
|
sb lathiya
New User
Joined: 04 Jul 2012 Posts: 2 Location: India
|
|
|
|
@ Anuj , Bill : Thanks for reply
Apart from DISPLAY/WRITE ,Is there any other method we can do this??? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You want to see the output in the spool but you don't want to use WRITE or DISPLAY?
Other than going back to pre-Cobol II and using EXHIBIT, I don't know. Write and CALL an Assembler program? C/C++? FORTRAN? PL/I?
Why would you not want to use WRITE or DISPLAY? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Apart from DISPLAY/WRITE ,Is there any other method we can do this??? |
What on earth do you want? COBOL allows you to WRITE to produce output to spool or a file, and DISPLAY to produce output to spool, and that is it -- there is no secret COBOL verb to output data a different way.
Topic locked since you have been given your answer, and you are not wanting the answer you were given. |
|
Back to top |
|
|
|