How to assign content of a file to a string variable in progress openedge 4gl?

mac100

Assigning content of a huge file around 80 KB to a string variable

copy-lob from file "E:\edifact\test\22685.EDI" to text-memptr.
v-edistring  = get-string(text-memptr,1).

shows error attempt to exceed maximum size of character variable.

Jensd

Do you really need the mempointer? Otherwise you can just COPY-LOB into a LONGCHAR directly.

DEFINE VARIABLE cString AS LONGCHAR   NO-UNDO.

COPY-LOB FROM FILE "E:\edifact\test\PFCONCEPT22685.EDI" TO cString.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to implement NOT EXISTS in OPEN QUERY statement in PROGRESS 4GL - OpenEdge 10.2A

In Openedge ABL (Progress 4GL) how create a new row when defining a browse?

How to test if string is numeric using Progress 4GL

How to export xml file in progress 4gl?

Unable to connect to db using -pf in openEdge progress 4gl

Progress 4gl format string with constants

How to match a records in progress 4GL?

How to get the last comma separated data stored in a variable? - Progress 4gl

How to get chosen value from combo-box as variable PROGRESS 4GL

How fast can a file be written/read by progress 4GL program?

Progress 4GL: How to generate different log file name when multiple processes using the same Timestamp?

How to read a XML file and export an item using Progress 4GL

How to run .exe/.bat file with INPUT/OUTPUT in Progress 4GL

How do I get the latest file from a directory in Progress 4gl?

Getting XML data into Temp-Table in Progress 4GL/OpenEdge ABL

what is the meaning of NO-UNDO on define variable in progress 4gl?

Progress Database 4GL - Math calculate for export file

Where srt file will be exported in Windows OS? - PROGRESS 4GL

How do I count total lines and create new/Select sheet in one csv file using progress 4GL?

How to list all lines in a field with Progress 4GL

How to hide form fields data? - PROGRESS 4GL?

How to store the data in database in chinese language on progress 4gl?

How to converts a character to decimal on progress 4GL?

How to fix Dynamic Query error for progress 4gl?

How to rethrow caught exception in progress 4gl?

Progress 4GL: How to find where a procedure is defined

How to send a SOAP headers in Progress 4GL

How can i get the same result in Progress 4gl?

How to make a multidimensional array in Progress 4GL?