IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SNAP keyword not identified


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Thu Aug 04, 2011 9:01 pm
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
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
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: 6966
Location: porcelain throne

PostPosted: Thu Aug 04, 2011 10:04 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Where is output from PARM ABEXIT (SNA... CA Products 3
No new posts syncsort: copy lines after the keyword SYNCSORT 7
No new posts IDMS/DC-COBOL program - SNAP error wh... IDMS/ADSO 5
No new posts Illegal use of keyword fetch. Token w... DB2 2
No new posts IFTHEN & BUILD - If keyword match... DFSORT/ICETOOL 4
Search our Forums:

Back to Top