openedge

How to identify the lock acquired by another user on a record in progress openedge

只谈情不闲聊 提交于 2019-12-12 01:51:46
问题 User A has read first record from a customer table. User B wishes to know the lock which is held by A on the record. How will B identify the lock held by User A programmatically. 回答1: You can use LOCKED function: Returns a TRUE value if a record is not available to a prior FIND . . . NO-WAIT statement because another user has locked a record. Example of the documentation: REPEAT: PROMPT-FOR customer.cust-num. FIND customer USING customer.cust-num NO-ERROR NO-WAIT. IF NOT AVAILABLE customer

Opening a STREAM in a Persistent Procedure Function

≡放荡痞女 提交于 2019-12-12 01:16:32
问题 I have a persistent procedure, in which I am trying to open, write and close a stream. I have in the main area of the procedure DEFINE STREAM sOutFile. OPEN STREAM sOutFile TO VALUE( outFileName ). MESSAGE SEEK( sOutFile ). and subsequently a function within the persistent procedure FUNCTION example RETURN LOGICAL: MESSAGE SEEK( sOutFile ). PUT STREAM sOutFile UNFORMATTED someData. END. When the persistent procedure is instantiated, the message displays "0" so the stream has been opened.

Implementing WS-Security in Progress ABL

偶尔善良 提交于 2019-12-11 23:13:55
问题 I'm struggling with implementing WS-Security in Progress ABL. It seems possible, this knowledgebase: http://knowledgebase.progress.com/articles/Article/P88147 states: For outgoing WS-Security, create SOAP Headers containing the WS-Security content manually using the OpenEdge Web Service client. First of all I'm struggling with the creation of a base64 encoded and SHA1 digested password hash. Password digest according to the WS-Security specification. Source. Password_Digest = Base64 ( SHA-1 (

How to convert A0058 value to 9958 in progress 4gl [duplicate]

走远了吗. 提交于 2019-12-11 17:18:53
问题 This question already has answers here : How to convert A00073 value to 9973 in progress 4gl (5 answers) Closed 2 years ago . i have column having multiple value like A0045 ,A00065 . i want to convert it 9945, 9965. Need to remove all 0 and character value and add 99 before that value.. replace(val,"A","99") will replace only A I want to go for A-Z occurrence.. Any char should be convert .. Please help 回答1: How about newValue = "99" + LEFT-TRIM( oldValue, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0" ). This

Creating Database Table From Temp-Table (by Code)

不打扰是莪最后的温柔 提交于 2019-12-11 12:14:57
问题 I have a temp-table called tt. I want to create a database table with the same field names and types using my temp-table. I can't figure out how to do in Progress-4gl . Is this possible ? Thanks. 回答1: Short answer: yes The safest way is to do this by code is to create an incremental df and then load this. Here is a very partial start that should get you going: DEFINE TEMP-TABLE tt NO-UNDO FIELD ii AS INT FIELD cc AS CHAR INDEX ttix IS UNIQUE PRIMARY ii. DEF VAR hb AS HANDLE NO-UNDO. DEF VAR

Admin account of progress database

空扰寡人 提交于 2019-12-11 08:05:19
问题 I'm trying to connect via ODBC to a clean install of Progress DB. Any idea what username/password should I use? 回答1: Did you try : -user sysprogress -password 123 回答2: Out-of-the-box you have two options to access the database with an account that has DBA privileges granted: The credentials of the operating system account under which you've created the database. You can manually create or, if it already exists, modify the special user SYSPROGRESS with the 4GL data administration tool. You

How to set up ODBC 10.1b for Progress DB

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:25:30
问题 I'm trying to set up an ODBC client driver for Progress 10.1b. I was able to install the client software that is required, but there is apparently also an ODBC.reg script file that needs to be run to correctly set up the registry in order for me to use the ODBC drivers. Can anyone point me to where I would find this script? Or tell me the set of registry entries that would have to be made? 回答1: That's not a standard part of the install process. Are these the steps that you followed to get the

Multiple OS-COMMAND calls from procedure are conflicting

…衆ロ難τιáo~ 提交于 2019-12-11 06:23:20
问题 I have a procedure which is writing a file, emailing it using mail_files , and then an OS-DELETE statement to delete the file after it is sent. The call to the external procedure which calls mail_files or the actual OS-COMMAND itself are asynchronous. The OS is AIX 6 and the version of Progress is 102B. Here's an example below: Here is the main procedure: DEFINE STREAM outStr. OUTPUT STREAM outStr TO foo.txt. FOR EACH customer NO-LOCK: EXPORT STREAM outStr customer. END. OUTPUT STREAM outStr

How in OpenEdge ABL / Progress 4GL do I find the row id of a row that is right clicked in a broswer

会有一股神秘感。 提交于 2019-12-11 06:02:51
问题 How in OpenEdge ABL / Progress 4GL do I find the row id of a row that is right clicked in a browser. 回答1: I'm not sure if this is what you're looking for, but I hope it will be useful to someone. I wanted to respond to the mouse's Right-click in a browse. Right-clicking does not select the row you're clicking on, so I had to programatically figure out which row it was. This goes in the MOUSE-MENU-DOWN event of the browse: DEFINE VARIABLE iRowHeight AS INTEGER NO-UNDO. DEFINE VARIABLE iLastY

SQL SSIS import error: PROGRESS openedge wire protocol column in table has value exeeding its max length or precision

醉酒当歌 提交于 2019-12-11 03:35:33
问题 I'm importing data from a progress database. I am getting the following error: Progress openedge wire protocol column in table has value exeeding its max length or precision Is there a way to specify a specific length of the select column's data in the select statement? For example: SELECT SUBSTRING(EMAIL,15) FROM SQL92.PROGRESSTABLE SUBSTRING does give me the substring of a valid field value, but still fails with the above error when the dataset hits the "dirty" row. I don't have access to