Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
IDMS/DC-COBOL program - SNAP error while compiling

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
View previous topic :: :: View next topic  
Author Message
rakeshsekar1987

New User


Joined: 13 Sep 2016
Posts: 3
Location: USA

PostPosted: Tue Sep 13, 2016 8:28 pm    Post subject: IDMS/DC-COBOL program - SNAP error while compiling
Reply with quote

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..
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8188
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 13, 2016 8:53 pm    Post subject:
Reply with quote

The IGY prefix on the error messages indicates that COBOL is generating the messages. Either the code did not go through the IDMS precompiler or the code failed to be converted in the precompiler and went into the COBOL compile. SNAP is not a COBOL verb and hence the error messages.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1818
Location: NY,USA

PostPosted: Tue Sep 13, 2016 10:51 pm    Post subject:
Reply with quote

Welcome!!
Please make a use of code tags.
Quote:
I thought SNAP was inbuilt key word
Not for COBOL.
I echo Mr.Robert Sample. Please make sure you have IDMS precompiler step before pass to COBOL compiler.
Back to top
View user's profile Send private message
rakeshsekar1987

New User


Joined: 13 Sep 2016
Posts: 3
Location: USA

PostPosted: Mon Sep 19, 2016 6:45 pm    Post subject: Reply to: IDMS/DC-COBOL program - SNAP error while compiling
Reply with quote

Thanks for your response , I really do appropriate it . Since we using macro programming its not getting converted in appropriate per-compilation process .Is there any alternate solution to this to debug line by line without using a tool. I've tried debug process it takes to long to find the S0C4 data variable which is causing the abend . Any ideas or thought that might help ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10358
Location: italy

PostPosted: Mon Sep 19, 2016 7:54 pm    Post subject: Reply to: IDMS/DC-COBOL program - SNAP error while compiling
Reply with quote

unfortunately the last post does not make any sense, and seems unrelated to the original question
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1818
Location: NY,USA

PostPosted: Mon Sep 19, 2016 8:12 pm    Post subject:
Reply with quote

The only way is you talk immediately to your site support.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us