Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

EDIFACT and z/OS
Is anyone aware of of vendor package for dealing nicely with EDIFACT
files on z/OS?

I've recently received a question for research from the group dealing
with said files that they are unable to cope nicely with the '
record delimiter.

It seems the programmers are expecting to be able to do a simple COBOL
sequential file READ and receive exactly 1 record.  But the transmission
product is not breaking QSAM records on the ' delimiter.

Writing a program to reformat the file into 1 QSAM record per ' is
trivial.  My great concern is that this is only the FIRST problem that
has reared its unsightly head.  I don't want to have to repeat this
process several hundred more times as the project continues.

I'm tempted by the PERL EDIFACT-to-XML package -- but the shop doesn't
run Perl in production, though it is available via OMVS, I don't want to
get too out-of-the-box on them.

I suppose what I want is any of the following:

- Texts on EDIFACT handling in Cobol or in general MVS envorinments.

- Free packages/software/source examples for dealing with the files.

- Vendor products that make EDIFACT easier to use.

The languages available are IBM Enterprise Cobol, Rexx, IBM C, Java,
PL/I, IBM Pascal and, of course, High Level Assembler.  Anything like
pointers to packages or documentation in those languages is greatly
appreciated.

TIA...

Report this thread to moderator Post Follow-up to this message
Old Post
Joe Zitzelberger
02-25-05 08:55 AM


Re: EDIFACT and z/OS
> I suppose what I want is any of the following:
>   - Texts on EDIFACT handling in Cobol or in general MVS
envorinments.
>   - Free packages/software/source examples for dealing with the
files.
>   - Vendor products that make EDIFACT easier to use.

I have been writing systems that create and process EDIFACT messages
for a couple of decades. Some are in Cobol, some in C. These days I
create them using templates so I no longer care so much if the user
wants EDIFACT or XML or CSV.

You need to be careful as the characters may be escaped.  This means
that, for example:

NAD+ST+1234::91+MARY?'S MARKET STALL'

is one segment.  You probably also need to use the UNA to specify the
characters used in the message, so these need not be :+.? '.

This generally means that you need to process the whole message
character by character, UNSTRING just won't work, nor will breaking it
into lines using "'".

Also you need to ignore control characters between a segment terminator
and the next segment.  I have found that when sending some receivers
need to have newlines (of some form) while others need not to have them
and some don't care.  My software doesn't care.


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
02-25-05 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:55 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.