10 More Discussions You Might Find Interesting
1. Programming
Hi guys,
i used the call "sytem" using ... in a cobol program.
At the moment i stoped at an empasse, how cam I retrive the execution's result of unix command?
Explenation, I made an 'pwd' command, and I must to have the directory inside the program.
How can have this result? (2 Replies)
Discussion started by: Prosy60
2 Replies
2. Shell Programming and Scripting
I am rather new to korn shell scripting and attempting to write a Unix script that would detach, attach a range partition table in DB2 UDB LUW database. This would be a job scheduled in control M that reads in an input file with 5 parameters passed to it from the application. I don't have much... (1 Reply)
Discussion started by: tjhanso
1 Replies
3. AIX
hi folks,
I am a new to Aix, i worked as sys admin so no idea about software probs, my software team requires Debugging tool for cobol in AIX machine.
can someone tell me the tool and also the installation procedure for the same
Please drag me out from this soon :confused: (1 Reply)
Discussion started by: atulgkwd
1 Replies
4. AIX
Am trying to export the content of Stored Procedure to a file using GET ROUTINE command. After executing the command first few lines of the file contains ASCII characters though i have original text following that.
Any help is appreciated. (0 Replies)
Discussion started by: mvictorvijayan
0 Replies
5. Shell Programming and Scripting
Is there a way you can return a value from a script that is called from a rm cobol program...
01 WS-COMD-LINE-PGM X(39) value sh ./getUserId.sh 12345"
01 WS-RETURN-SYS-CODE PIC 9(8).
CALL "SYSTEM" USING WS-COMD-LINE-PGM
GIVING WS-RETURN-SYS-CODE.
... (1 Reply)
Discussion started by: pavanmp
1 Replies
6. Programming
Hi
some help read............
I'm getting a segmentation fault when I run an AIX COBOL/Db2 program.
I initiate the program from the command line, but it hangs, and then when I press enter it generates a segmantation fault and produces a core dump.
The box is running AIX software level ... (5 Replies)
Discussion started by: steve_f
5 Replies
7. AIX
We are going from UDB DPF 8.2 to 9.5 and changing HW from P4+ to P6 and moving from 5.2 to 5.3. Anyone out there gone through this upgrade? Any words of wisdom, warnings, or other gotchas you could pass on. TIA.
ART (0 Replies)
Discussion started by: ArtF
0 Replies
8. AIX
Hi All,
Am porting my application from AIX to Windows. As a part of this I need to port the Database in IBM DB2 UDB to SQL Server 2005. Is there any Guide/Doc/Article available on this? How to convert the stored procedures and physical data from DB2 to SQL Server 2005?
Thanks in Advance (0 Replies)
Discussion started by: mvictorvijayan
0 Replies
9. Programming
can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
Could anyone please tell me about the whole procedure for compiling, linking the cobol program on unix platform. As i am mainframe guy and very new to unix, any help will be very appriciated,
Regards,
-Vinit (2 Replies)
Discussion started by: vinit_cyberguy
2 Replies
DB2_PCLOSE(3) 1 DB2_PCLOSE(3)
db2_pclose - Closes a persistent database connection
SYNOPSIS
bool db2_pclose (resource $resource)
DESCRIPTION
This function closes a DB2 client connection created with db2_pconnect(3) and returns the corresponding resources to the database server.
Note
This function is only available on i5/OS in response to i5/OS system administration requests.
If you have a persistent DB2 client connection created with db2_pconnect(3), you may use this function to close the connection. To avoid
substantial connection performance penalties, this function should only be used in rare cases when the persistent connection has become
unresponsive or the persistent connection will not be needed for a long period of time.
PARAMETERS
o $connection
- Specifies an active DB2 client connection.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Closing a persistent connection
The following example demonstrates a successful attempt to close a connection to an IBM DB2 i5/OS database.
<?php
$conn = db2_pconnect('', '', '');
$rc = db2_pclose($conn);
if ($rc) {
echo "Connection was successfully closed.";
}
?>
The above example will output:
Connection was successfully closed.
SEE ALSO
db2_close(3), db2_pconnect(3).
PHP Documentation Group DB2_PCLOSE(3)