Compilation program


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Compilation program
# 1  
Old 07-02-2008
Compilation program

Hi,
I'm new to HP-Unix programming; I have a few programs, don't know the programming language used. I have to make minor changes and to recompile the source code. How do I find the programming language used and the compiler?

Thanks,
Nick.
# 2  
Old 07-02-2008
If you cannot tell what language, may I suggest you do some reading AFTER we tell you the language name. You need to learn at least something about how to program the language first, before you try to make changes. Otherwise you have a great probability of making a hash of the program. If you can post a sample - say 10 lines of code from somewhere a few dozen lines down from the top, there has to be someboy here who can help.
# 3  
Old 07-02-2008
Quote:
Originally Posted by jim mcnamara
If you cannot tell what language, may I suggest you do some reading AFTER we tell you the language name. You need to learn at least something about how to program the language first, before you try to make changes. Otherwise you have a great probability of making a hash of the program. If you can post a sample - say 10 lines of code from somewhere a few dozen lines down from the top, there has to be someboy here who can help.
Thank you for your reply Jim; I had the same problem on an AS400 machine. I had to identify the language (Cobol in that case) and buy a couple of good programming books to learn it.

Sample of the language:

DEFINE AT_POSITION FLOAT*8 = INDEX(FIELDTEXT,"@")
DEFINE LNGTH FLOAT*8 = SIZE(FIELDTEXT)
;--- Chequeprint File - Primary file
DEF CHEQUEPRINT_ENTITY CHAR*12 = USER_ENTITY &
IF RETURN_MULTIENTITY[1:1] = "Y" ELSE DEFAULT_ENTITY
FILE CHEQUEPRINT PRIMARY
ITEM ENTITY_CODE INITIAL CHEQUEPRINT_ENTITY
ITEM MULTIENTITY_FLAG INITIAL RETURN_MULTIENTITY[1:1]
DEFINE NET_AMOUNT FLOAT*8 = INVOICEAMNT OF CHEQUEPRINT &
- DISCOUNT_AMNT OF CHEQUEPRINT &
IF CHEQUEDATE OF CHEQUEPRINT <= DISCOUNT_DATE OF CHEQUEPRINT AND &
# 4  
Old 07-02-2008
Disregard this question

Disregard the question ... it's Cognos PowerHouse 4GL.

Nick.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Compilation C program

Hi guys... Im trying to compile a program written in C.. I am able to compile it to X86, especifically Ubuntu.. But i cant compile it to mips ar71xx architecture.. im using mips-linux-uclibc-gcc cross compiler. this is the portion of code: //STAT: LOGIN INFO // 3. login info i =... (3 Replies)
Discussion started by: lordtrex
3 Replies

2. Shell Programming and Scripting

Compilation

Hi All, Do we have a way to compile a shell program? I am using ksh/bash/sh and not CSH. Cheers Ravi (12 Replies)
Discussion started by: panyam
12 Replies

3. UNIX for Dummies Questions & Answers

proc program compilation in unix

hi, i need to compile a proc program, say prog.pc can we compile this program in the unix environment? does this need a make file? can anyone help me on this since i am new to this area. Thanks in advance. (1 Reply)
Discussion started by: csprog
1 Replies

4. AIX

Problem in compilation.

Hi, I am executing the below mentioned code:- proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp g++ -c main.cpp g++ -o pre_request_engine main.o -I/oracle/oracle/app/product/10g/precomp -L/oracle/oracle/app/product/10g/lib32 -lnsl -ldl And... (2 Replies)
Discussion started by: tushar_tus
2 Replies

5. Programming

Program exited with code 01: does it indicate unsuccessful compilation?

(gdb) r --------------------- enter Breakpoint 1, 0x0000000000409d40 in main () (gdb) n Single stepping until exit from function main, which has no line number information. Find_Cmd_Option: found option no. 2: seed (s) Find_Cmd_Option: found option no. 5: dfile (c) Initial no. div... (1 Reply)
Discussion started by: cdbug
1 Replies

6. UNIX for Dummies Questions & Answers

Compilation

Hi All, We have a C program existing in one of the folders which I have to modify a lil bit, When I'm trying to compile the program using GCC or CC command its showing as ksh: gcc: not found is that mean there is no compiler or do I have to verify for something, please advice Thank... (2 Replies)
Discussion started by: diggermf
2 Replies

7. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

8. UNIX for Dummies Questions & Answers

multifile c program compilation and execution

i am using unix os and my program is divided in two text files .:):) how to compile and make one executable file, using unix command. (1 Reply)
Discussion started by: alokmishra8
1 Replies

9. UNIX for Dummies Questions & Answers

Kernel compilation

I have re-compiled kernel source code available in /usr/src/linux.2.4.20 with "make" command. The compilation is succesful. Now the problem is create the image for this. The documentation in the same folder says that now you have compile "make image". There is no option for image in Makefile. ... (3 Replies)
Discussion started by: mankrish
3 Replies

10. Programming

compilation error

Hi, While trying compile a C++ file in UNIX with gcc whose make rule involves the usage of /usr/ccs/bin/as, I get the following error: /usr/ccs/bin/as: No such file or directory /usr/ccs/bin/as: error: write error on output file "<filename>.o" *** Error code 1 clearmake: Error: Build... (2 Replies)
Discussion started by: smanu
2 Replies
Login or Register to Ask a Question