Why not read the whole record in with the TRANS and then check <1> using
EXTRACT?
> From: [email protected]
> To: [email protected]
> Date: Thu, 7 Oct 2010 16:20:17 -0500
> Subject: [U2] Stumped with TRANS...
>
> ok. I'm using TRANS to read some data, but I need to be able to tell if the
> record exists, WITHOUT producing an error message.
>
> ok. So, I use the 'C' command, where it's supposed to return the @ID if it
> doesn't exist
> BUT....I have records where the only data in <1> is the record ID (by
> coincedence).
>
> so I'd get:
>
> 1 @ID if the record does not exist
> 2 non zero lenth data that happens to be same as @ID (some of the records and
> OK)
> 3 zero length data if the @ID exists, but has no data (which is OK)
> 4 non zero length data that is not the same as the @ID (which is OK)
>
> How can I distinguish between cases 1 and 2 ?
>
> I can't think of any way......and continue using TRANS. I really don't want
> to create a VOC entry for the file
> then open this temporary file, then read the record. But I might have to.
>
>
> George Gallen
> Senior Programmer/Analyst
> Accounting/Data Division, EDI Administrator
> [email protected]
> ph:856.848.9005 Ext 220
> The Wyanoke Group
> http://www.wyanokegroup.com
>
>
>
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users