View previous topic :: View next topic
|
Author |
Message |
Andy85
New User
Joined: 25 Dec 2008 Posts: 35 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Andy85
New User
Joined: 25 Dec 2008 Posts: 35 Location: India
|
|
|
|
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 |
|
|
Andy85
New User
Joined: 25 Dec 2008 Posts: 35 Location: India
|
|
|
|
Got something working
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|