Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

IDMS/ADSO :: IDMS/DC-COBOL program - SNAP error while compiling

$
0
0
Author: rakeshsekar1987
Subject: IDMS/DC-COBOL program - SNAP error while compiling
Posted: Tue Sep 13, 2016 8:28 pm (GMT 5.5)

Code:
IGYPS2121-S   "SNAP" was not defined as a data-name.  The statement was discarded.

IGYPS2072-S   "FROM" was invalid.  Skipped to the next verb, period or procedure-name definition.


Could any one help in resolving this issue . I thought SNAP was inbuilt key word .

Cobol code :

Code:
 $CBAP-WORKING-STORAGE

 01  WS-BILL-MASK-TRNLT-TABLE.
     $CAMS-COPY ('BILL-MASK-TRNLT-TABLE')
     EJECT
 01  WS-SNAP-TITLE.
     05 WS-SNAP-HEADING                  PIC X(23)
                          VALUE '***CMRPMLS1***'.

0000-MAIN-LINE.
    MOVE 'LOAD-TABLE' TO WS-SNAP-HEADING
    SNAP FROM WS-SNAP-HEADING LENGTH 14.

Code'd for you..
_________________
Rakesh Sekar


Viewing all articles
Browse latest Browse all 8500

Latest Images

Trending Articles



Latest Images