Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Input is 3421 & out put as 3 , 4 , 2 , 1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ankurbhavsar

New User


Joined: 21 Jun 2006
Posts: 1

PostPosted: Mon Sep 18, 2006 2:56 pm    Post subject: Input is 3421 & out put as 3 , 4 , 2 , 1
Reply with quote

i have been asked a question " that is i have a number that is 3421 or any four digit number i want my out put as 3 , 4 , 2 , 1 separetly but you should not implement any logic in procedure division not even refrence modification " i hope its clear check out and hel;p every one out here icon_arrow.gif
Back to top
View user's profile Send private message

Aji

New User


Joined: 03 Feb 2006
Posts: 53
Location: Mumbai

PostPosted: Mon Sep 18, 2006 3:33 pm    Post subject:
Reply with quote

Hi
Have a look at the following code.
working-storage section.
01 a pic 9(04) value 1234.
01 b pic 9,9,9,9.

procedure division.
p1.
move a to b.
display b.
stop run.


Aji Cherian
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 SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Getting Mutiple input from Panels vidyaa CLIST & REXX 12 Mon Aug 14, 2017 1:28 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us