Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SNAP keyword not identified

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Andy85

New User


Joined: 25 Dec 2008
Posts: 35
Location: India

PostPosted: Thu Aug 04, 2011 8:46 pm    Post subject: SNAP keyword not identified
Reply with quote

Hi,

I have coded a new DC-COBOL program and I am using SNAP within that program. However, when I compile it, I get below error

Code:


IGYPS0148-S   "TITLE" is a reserved word related to language not supported by this compiler.  The statement was discarded.

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



However, when I compile an existing DC-COBOL program (with SNAP), I do NOT get any errors. The compile JCLs for both of them are same. However, the parameters being used in my program (from compile listing) is as given below. Let me know whether I should change any parameters manually.

Code:

  ADV
  APOST
NOAWO
  BUFSIZE(32760)
NOCMPR2
NOCOMPILE(S)
  DATA(31)
NODBCS
NODECK
NODUMP
NODYNAM
NOEXIT
  FASTSRT
NOFDUMP
  FLAG(W)
NOFLAGMIG
NOFLAGSAA
NOFLAGSTD
  LANGUAGE(EN)
  LIB
  LINECOUNT(59)
NOLIST
  MAP
NONAME
NONUMBER
  NUMPROC(NOPFD)
  OBJECT
  OFFSET
NOOPTIMIZE
  OUTDD(SYSOUT)
  RENT
  RESIDENT
NOSEQUENCE
  SIZE(MAX)
  SOURCE
  SPACE(1)
  SSRANGE
NOTERM
NOTEST
  TRUNC(STD)
NOVBREF
NOWORD
  XREF(FULL)
  ZWB


--- Andy
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Aug 04, 2011 9:01 pm    Post subject:
Reply with quote

to start,
sounds as if you should compare the parameter list of your failing pgm
with the list generated with when I compile an existing DC-COBOL program (with SNAP),

now I realize that it not what you wanted, - you wanted a solution given to you.
Back to top
View user's profile Send private message
Andy85

New User


Joined: 25 Dec 2008
Posts: 35
Location: India

PostPosted: Thu Aug 04, 2011 9:08 pm    Post subject: Reply to: SNAP keyword not identified
Reply with quote

I am already working on comparison and tried out adding options like NOCICS and others. I am still doing. However, I am not aware that which option may have SNAP related parameters. Moreover, I am not able to override all the required options.
Back to top
View user's profile Send private message
Andy85

New User


Joined: 25 Dec 2008
Posts: 35
Location: India

PostPosted: Thu Aug 04, 2011 9:45 pm    Post subject: Reply to: SNAP keyword not identified
Reply with quote

Got something working icon_smile.gif

I had the SNAP statements originally written in a copybook which i was including as COPY XXXXXXX.

When I moved the SNAP statements to the main program code, its working fine. I am not sure why it was not working within a copybook. Any thoughts?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Aug 04, 2011 10:04 pm    Post subject:
Reply with quote

if snap is a pre-compiler, then the copybook is not expanded until the cobol compiler kicks in.

like db2, you need to INCLUDE copybooks for the db2 pre-compiler.

maybe there is a snap pre-compiler command which will expand copybooks.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm
No new posts Illegal use of keyword fetch. Token w... HABBIE DB2 2 Fri Aug 28, 2015 5:20 pm
No new posts IFTHEN & BUILD - If keyword match... Roach_MF DFSORT/ICETOOL 4 Wed Mar 18, 2015 1:21 am
No new posts COBOL 5.1 and the UNBOUNDED Keyword Bill O'Boyle COBOL Programming 2 Tue Apr 29, 2014 7:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us