skip to main content

Library Routines : C$JUSTIFY

C$JUSTIFY
The C$JUSTIFY library routine changes the alignment of a data item's content.
Syntax:
 CALL "C$JUSTIFY" USING text 
Parameters:
Examples:
Example - Justify a string Center, Right and then Left
working-storage section.
77 str1   pic x(10value "hello".
77 ruler  pic x(10value "1234567890".
 procedure division.
   display ruler
   display str1
   call "c$justify" using str1 "C"
   display str1
   call "c$justify" using str1 "R"
   display str1
   call "c$justify" using str1 "L"
   display str1.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left