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
 

 

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 Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 37 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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