MOVING THE SIGN

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
reddynlr
Member
Posts: 4
Joined: Mon Feb 22, 2016 1:33 pm

MOVING THE SIGN

Post by reddynlr » Mon Feb 22, 2016 1:57 pm

01 WS-A PIC S9(4).
MOVE -123 TO WS-A.
WHAT WILL BE IN WS-A?
-123 OR -0123 OR ?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Feb 22, 2016 3:33 pm

012C. The sign is an "overpunch", embedded in the value. Consult the Enterprise COBOL Programming Guide for details

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu May 12, 2016 9:18 pm

More SPAM

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