WebApr 22, 2010 · If you just want a coding exercise, you could initialize the array with hex "EE"s and after the load, inspect/tally the entire array for x'EE' and do a bit of arithmetic. A great waste of system resources if done every time thru and clutter code for whoever has to maintain it later. WebFUNCTION REVERSE can be used first to turn trailing spaces into leading spaces, so that INSPECT can count them. Once you know the number of trailing blanks, you can use the LENGTH OF special-register or FUNCTION LENGTH to determine the length of the fixed-length field (both are (or can be, depending on compiler) evaluated at compile time).
REGARDING FUNCTION REVERSE... -IBM Mainframes
WebMay 22, 2007 · COBOL Programming: how can we reverse a string in cobol without using REVERSE function as my compiler is not supporting REVERSE function : Reverse a … WebAnswers were Sorted based on User's Feedback. how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas.. data division. 01 ws-input … higanteng bato location
How to read array backward( in reverse order) -IBM Mainframes
WebDec 15, 2024 · Dec 15, 2024 at 18:31 Concerning "standard-COBOL" you'd write your own FUNCTION because of the MON part. possibly similar as you did. For the returning value you can use the FORMATTED-DATE function, but there is no "standard" "any string in any language to month". – Simon Sobisch Dec 16, 2024 at 7:08 Add a comment 1 Answer … WebJun 30, 2024 · Transforming to reverse order (REVERSE) You can reverse the order of the characters in a string by using the REVERSE intrinsic function. Move Function Reverse (Orig-cust-name) To Orig-cust-name For example, the statement above reverses the order of the characters in Orig-cust-name. how far is burbank from los angeles