Subfiles, no line end in .dat

Ole Hansen, ScanConsult oh at scanconsult.dk
Mon Sep 26 06:55:31 CDT 2005


Elisabeth,

The COBOL program probably expects the individual records to be terminated
by a 'linefeed' and maybe even a 'carriage return'/'linefeed'.

Define the 'linefeed' (and maybe also the 'carriage return') thus :

DEFINE LFNUM INT*2  = 10
DEFINE LF    CHAR*1 = CHAR(LFNUM)[2:1]
DEFINE CRNUM INT*2  = 13
DEFINE CR    CHAR*1 = CHAR(CRNUM)[2:1]

Make your subfile statement like this :

SUBFILE XYZ keep include <the existing items> , LF   
  or 
SUBFILE XYZ keep include <the existing items> , CR, LF 


Note: There is a previous thread on why the CHAR(LFNUM)[2:1] is necessary -
including information on big endian vs. little endian machines.

Mange hilsner / With kind regards
 
Ole Hansen
 
===========================================================
E-mail: oh at scanconsult.dk         Cell Phone: +45 4040 1150
===========================================================
ScanConsult IT-Partners ApS         Voice   : +45 8738 7474
Jegstrupvej 96A                     Fax     : +45 8738 7475
DK-8361 Hasselager         Support : support at scanconsult.dk
Denmark                    Sales   :   sales at scanconsult.dk
                 http://www.scanconsult.dk                
= ParaSuite :  A Suite of Air Cargo Handling solutions    =
= ParaSafe  :  A Suite of IT-Security solutions           =
= Partners  : Hewlett-Packard, Cognos, Microsoft and more =



-----Original Message-----
From: powerh-l-bounces+oh=scanconsult.dk at lists.sowder.com
[mailto:powerh-l-bounces+oh=scanconsult.dk at lists.sowder.com] On Behalf Of
Elisabeth Corsten
Sent: 26. september 2005 12:59
To: powerh-l at lists.sowder.com
Subject: Subfiles, no line end in .dat


Dear All, 

migrating from MPE / IMAGE / KSAM to PH 843D under UX and Eloquence, we were
quite happy with the pilot part of the system, until we tried to access a
QTP-written subfile with COBOL.

Even printed on screen or transferred to Excel the .dat file showed the same
data jumble; the records are not separated and the data just flows on and
on. Obviously only PH modules see the line end and can discern individual
records.

Apologies in advance - this one must have come up before - only I couldn't
find anything relevant...

Elisabeth Corsten
EC Datentechnik GmbH
Germany




-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe &lt;password&gt;" in message body to
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.




More information about the powerh-l mailing list