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
 

 

Needed help with DB2 pre-compilation process for Assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Needed help with DB2 pre-compilation process for Assembler
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Aug 23, 2012 11:28 am    Post subject: Reply to: Needed help with DB2 pre-compilation process for A
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    Post subject: Reply to: Needed help with DB2 pre-compilation process for A
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Thu Aug 23, 2012 7:21 pm    Post subject:
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    Post subject: Reply to: Needed help with DB2 pre-compilation process for A
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

Site Director


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

PostPosted: Thu Aug 23, 2012 9:08 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Aug 23, 2012 9:39 pm    Post subject: Reply to: Needed help with DB2 pre-compilation process for A
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
http://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
http://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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm
This topic is locked: you cannot edit posts or make replies. MVS Assembler profiles for Pune Locat... shailesh_do Mainframe Jobs 0 Mon Feb 22, 2016 6:21 pm
No new posts IGYDS5000-U and IGYDS5062-U abend in ... Alks ABENDS & Debugging 5 Mon Jan 18, 2016 9:56 pm


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