View previous topic :: View next topic
|
Author |
Message |
Prakash J
New User
Joined: 23 May 2012 Posts: 14 Location: India
|
|
|
|
Hello Seniors,
I have an Assembler program with DB2 queries. I would like to know how to compile it. I know the compiler that works for file processing.
Can anybody please help me with DB2 pre-compilation process?
Thank you.
Prakash |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
the best help is the one You will get from Your support,
nobody here belongs to Your organization, so we do not know Your standards and way of doing things. |
|
Back to top |
|
|
Prakash J
New User
Joined: 23 May 2012 Posts: 14 Location: India
|
|
|
|
Hello Enrico,
Thank you for your response.
I know, I should contact my support team for this kind of queries.
Unfortunately, I am not currently working anywhere. So, I came to this forum for help. I will find other ways. Thanks. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
try reading a db2 manual. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Can anybody please help me with DB2 pre-compilation process? |
There are generic examples in the db2 documentation.
Unfortunately, the specifics are quite site-dependent. If you are currently not working on a system that has the compiler tools and db2, what is in the manual may not be very useful to you. |
|
Back to top |
|
|
Prakash J
New User
Joined: 23 May 2012 Posts: 14 Location: India
|
|
|
|
Thank you for your responses.
I figured it out with a Professor from Columbus State University.
//PC EXEC PGM=DSNHPC,
// PARM='HOST(ASM),APOST,SOURCE'
I changed the HOST value from COB2 to ASM. It worked. Thanks.
- Prakash |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Possibly i'm too literal - but:
Quote: |
Unfortunately, I am not currently working anywhere. |
Quote: |
I changed the HOST value from COB2 to ASM. It worked. Thanks. |
If you aren't working anywhere, on which computer did it work? Possibly some school computer?
If you had posted your problem jcl initially someone here would have questioned the COB2 reference for an Assembler run . . . The way you posted was understood to mean you had no jcl and were trying to create some.
The more clearly you post what is really going on, the faster you will get useful replies. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Code: |
//PC EXEC PGM=DSNHPC,
// PARM='HOST(ASM),APOST,SOURCE' |
sorry to be rude... but that's just plain horse manure ...
the precompilation process is not simply a program with its parameters
but also the specification of the dataset involved ...
1) DB2 load library where the precompiler resides
2) PDS library where to store the DBRM
3) source code to be preprocessed
4) output code to be processed by HLASM in the next step
that' s why I replied that a forum would not be able to help You
for ...
1) we do not know the naming standard of the DB2 installation
2) we do not know the standard for the naming of development libraries
I know I am being picky , I simply do not like to be fooled by smarties
as far as the code snippet is concerned , no need to bother a
Professor from Columbus State University.
just looking at the manual would have been enough
here for example
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnapk13/3.2.5.1?SHELF=DSNSHKA3.bks&DT=20081114012927&CASE=
and here for the HOST(ASM) defaults
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnapk13/3.2.5.2?SHELF=DSNSHKA3.bks&DT=20081114012927
fro Your signature
Quote: |
A well-stated problem is a problem half-solved !! |
to get good help it is You who should ...
start learning how to state/describe properly a problem |
|
Back to top |
|
|
|