IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Display the output in vertical manner


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jayaprakashr
Currently Banned

New User


Joined: 23 Jul 2005
Posts: 6
Location: bangalore

PostPosted: Mon Jul 25, 2005 12:58 am
Reply with quote

PROCEDURE DIVISION.
PARA1.
ACCEPT E-NAME.
I AM ACCEPTING A NAME JAYAPRAKASH.....
I WANT AN OUTPUT IN THE VERTICAL MODE..........
LIKE.... J
A
Y
A
P
R
A
K
A
S
H

DISPALY E-NAME.
STOP RUN.
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Mon Jul 25, 2005 3:30 pm
Reply with quote

MOVE +1 TO IND

PERFORM UNTIL IND > ENAME-LEN
DISPLAY ENAME(IND:1)
IND = IND + 1
END-PERFORM

Find the length of the ENAME using FUNTION LENGTH() and move it to ENAME-LEN.

Hope it works.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts XL C Trace Preprocessor Output All Other Mainframe Topics 3
Search our Forums:

Back to Top