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

How to left justify the numeric data item


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

New User


Joined: 18 Dec 2005
Posts: 7

PostPosted: Tue Feb 07, 2006 1:47 pm
Reply with quote

How to left Justify the value in the Numeric data item.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Feb 07, 2006 1:56 pm
Reply with quote

Hi Venkat,
I think you need to move the numeric item in to alphanumeric field declared with explicit left justified.

This should solve your purpose.
Back to top
View user's profile Send private message
venkat_India

New User


Joined: 18 Dec 2005
Posts: 7

PostPosted: Tue Feb 07, 2006 2:16 pm
Reply with quote

Hi,
Thank You Parikshit. Is it possible to make the numeric data item left justified.

Regards
Venkat.
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Tue Feb 07, 2006 5:58 pm
Reply with quote

Hi,

first you move numeric item to alpha numeric item and then move to character item it is automatically left justified ......I feel

correct me if I am wrong.....

pavan
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Feb 07, 2006 10:21 pm
Reply with quote

venkat_India,

Quote:
Thank You Parikshit. Is it possible to make the numeric data item left justified.

Numeric data items can not be justified using JUSTIFIED Clause; because they are always aligned by decimal point.

You need to move them to alphanumeric variables as per suggested above.

Regards,

Priyesh.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top