give me a code to reverse a COBOL string.

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
mainframe5
Active Member
Posts: 59
Joined: Tue Jul 24, 2007 7:25 pm

give me a code to reverse a COBOL string.

Post by mainframe5 » Mon Feb 04, 2008 6:46 pm

01 a pic x(5) value 'cobol'

please give me a code to reverse a COBOL STRING.EX-LOBOC

mkk157
Member
Posts: 37
Joined: Wed Feb 07, 2007 2:00 pm
Location: Hyderabad

Post by mkk157 » Wed Feb 06, 2008 9:43 am

Hi Mainframe5,

Ur query seems to be an assignment. No Problem..

From this link below, U can get more example programs on strings and tables which will help u a lot.

http://www.csis.ul.ie/COBOL/examples/default.htm


Regards,
Kumar.
Kumar
If u can dream it, U can do it.

User avatar
DavidatK
Active Member
Posts: 65
Joined: Tue Mar 27, 2007 8:41 am
Location: Troy, MI USA

Post by DavidatK » Sat Feb 16, 2008 4:14 am

Are you looking to use the 'REVERSE' function, or do you want the logic to do this youself?

Dave

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Jan 27, 2016 8:15 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:45 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others