Corresponding statement

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
vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

Corresponding statement

Post by vishu1484 » Wed May 14, 2008 3:20 pm

Which one of the following is not a valid statement?


MOVE CORRESPONDING OLD-REC TO NEW-REC.

MULTIPLY CORRESPONDING OLD-REC BY NEW-REC.

ADD CORRESPONDING OLD-REC TO NEW-REC.

SUBTRACT CORRESPONDING OLD-REC FROM NEW-REC.
Regards
Vishal

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed May 14, 2008 4:03 pm

Take a few minutes and look at a cobol manual (this is cobol 2), but it does not matter. CORRESPONDING is only associated with a MOVE instruction.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

ksk
Member
Posts: 12
Joined: Mon May 12, 2008 3:06 pm

Post by ksk » Fri May 16, 2008 4:21 pm

CORRESPONDING is valid with MOVE, ADD and SUBTRACT verbs.

Refer the following.

For SUBTRACT:

http://publib.boulder.ibm.com/infocente ... 539540.htm

For ADD:

http://publib.boulder.ibm.com/infocente ... 539540.htm

KSK

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri May 16, 2008 7:00 pm

on that platform, yes. but, do you notice the name of this website? or is ios mainframe?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

ksk
Member
Posts: 12
Joined: Mon May 12, 2008 3:06 pm

Post by ksk » Tue May 20, 2008 12:19 pm

Yes. But I could see these options in the following manuals.

http://publib.boulder.ibm.com - 3.2 "VS COBOL II Application Programing Language Reference".

--- deleted reference competitive sites -------

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