On Tue, 21 May 2024 15:01:12 +0000 "Schmitt, Michael"
<[email protected]> wrote:

:>3. Depends on the language. IMS can have variable length segments but not 
variable length fields, so any variable length fields are defined by the 
application. If the application is in COBOL, there's no native variable length 
field format. Applications can simulate variable length fields but how they do 
it is in application logic.

Well, I don't know about that.


01  var-field-length  pic  s9(4)  comp.

01   var-field.
       05  var-field-character pic x occurs 1 to 1000 times depending on
var-field-length.


When a MOVE is performed to or from VAR-FIELD the length from VAR-FIELD-LENGTH
is used.

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to