WebNov 25, 2006 · We can use cobol aggregate function FUNCTION REVERSE for this work done here is a sample code Code: IDENTIFICATION DIVISION. PROGRAM-ID. SAMP. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR2 PIC X(4). 01 VAR1 PIC X(4). PROCEDURE DIVISION. ... WebThe REVERSE function returns a character value of the same length as the argument, whose characters are the same as those specified in the argument except that they are in reverse order. For arguments of type national, character positions are reversed; UTF …
convert date DD-MMM-YYYY to YYYYMMDD in cobol - Stack Overflow
WebThere are many ways to calculate the length of data within a COBOL string variable. The following method is simple and hopefully easy to understand. The code basically does the following: 1) It reverses the string using the REVERSE Intrinsic function. 2) The INSPECT verb is used to count the number of leading spaces. 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. oldstewart.com
Do we have REVERSE command in COBOL? - mainframewizard.com
WebJul 10, 2011 · REVERSE FUNCTION IN COBOL MOVE FUNCTION REVERSE (original-string) TO reversed-string. The best way to reverse a string in COBOL. Top Log in or register to post comments Fri, 07/15/2011 - 09:13 #4 Anonymous function reverse (your function reverse (your string) after reverse inspect for initial spaces and do reference … WebI have been working with BAL, COBOL, OOREXX and C++ programming languages and JCL. ... Having mainly worked on existing software products I am proficient in reverse engineering, creating ... WebAll groups and messages ... ... is a borough the same as a county