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

Needed help with DB2 pre-compilation process for Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prakash J

New User


Joined: 23 May 2012
Posts: 14
Location: India

PostPosted: Thu Aug 23, 2012 10:53 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Aug 23, 2012 11:28 am
Reply with quote

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
View user's profile Send private message
Prakash J

New User


Joined: 23 May 2012
Posts: 14
Location: India

PostPosted: Thu Aug 23, 2012 1:46 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Aug 23, 2012 4:19 pm
Reply with quote

try reading a db2 manual.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2012 7:21 pm
Reply with quote

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
View user's profile Send private message
Prakash J

New User


Joined: 23 May 2012
Posts: 14
Location: India

PostPosted: Thu Aug 23, 2012 8:27 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2012 9:08 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Aug 23, 2012 9:39 pm
Reply with quote

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
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top