WebJun 1, 2001 · I am somewhat rusty in Cobol and have not kept up with the latest versions in Cobol. Is there some good functions available now to shift a field that is left-ju ... Is there … http://computer-programming-forum.com/48-cobol/93b5fe41acf8258f.htm
MVSFORUMS.com :: View topic - Right-Justifying text in …
WebThe source and destination data item can be group or elementary data items. Syntax:-. MOVE { identifier-1 literal-1 figurative-constant } TO identifier-2 [, identifier-3 ]…. MOVE rules:-. The value contained in identifier-1 or indicated by literal-1 or figurative-constant is moved to the identifier-2, identifier-3. Sending field can be only one. WebMessage. Christer Olsso. #1 / 25. numerical left justified. hi, I want to MOVE a numerical item, 9 (10), to an alpabetic. item, X (10), get rid of initial zeroes and have it left justified. (standard procedure I think). Is there a way of accomplish this without a lot of UNSTRING. climate for murphy nc
COBOL MOVE Verb Explanation, Syntax, Rules and Examples
WebJun 23, 2004 · I'm not sure how it would help in LEFT-justifying some text, but it does bring up an interesting question/issue: I cannto seem to get the JUSTIFIED RIGHT clause to work correctly. Consider the following: Code: WORKING-STORAGE SECTION. 01 ORIG PIC X (80) VALUE SPACE. 01 RIGHT1 PIC X (80) JUSTIFIED RIGHT. 01 TEST1 PIC X (80) VALUE … WebJun 3, 2014 · Brian Rusch June 3, 2014 at 7:00 PM. I don't know if it's a better way, but another way is to concatenate a constant of all zeroes to the trimmed string and right adjust when you assign to the variable: dcl-c allzeros '0000000000'; // adjust number of zeroes as necessary. EvalR Fld2 = allzeros + %trim (Fld1) ; Reply. WebNov 6, 2006 · It is the default for all PIC X (n) fields. Only JUST RIGHT can be used to alter the default. It has meaning only when you move a small field into a large field. The small … climate for mango tree