Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To Display the output in vertical manner

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: To Display the output in vertical manner
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    Post subject: Re: To Display the output in vertical manner
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us