[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rocks::dec_edi

Title:DEC/EDI
Notice:DEC/EDI V2.1 - see note 2002
Moderator:METSYS::BABER
Created:Wed Jun 06 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3150
Total number of notes:13466

2992.0. "Mapping Questions / Nothing in Output File" by GENIE::qmodo.ebo.dec.com::genie::munt (Hello) Thu Jan 30 1997 09:08

Mapping Questions (DEC/EDI V3.1):

- is there a way of finding out the number of instances for a particular 
record/segment ?

- a FETCHED document which generates no data causes an error 
	"Document generated nothing in Output File" 
and the document remains in the Current DB with status "PROCESSING".

  As in the environment in question the documents contain no useful data we 
just want to ignore them i.e produce no application file and have the 
document go to PURGEABLE (or maybe FAILED). 
 	
  Is there any way of doing this?

Thanks
...colin

T.RTitleUserPersonal
Name
DateLines
2992.1SYSTEM::newdial_2.reo.dec.com::JOHNSONRichard Johnson , http://samedi.reo.dec.comFri Jan 31 1997 12:4024
Colin

> - is there a way of finding out the number of instances for a particular 
> record/segment ?

You could use
n = $INSTANCE(node) /* returns current instance number */

you can qualify node with an instance number as well
n = $INSTANCE(node{5})

/* returns $UNDEFINED if instance does not exist else returns instance number */

> - a FETCHED document which generates no data causes an error 
>         "Document generated nothing in Output File" 
> and the document remains in the Current DB with status "PROCESSING".

A document stuck at PROCESSING usually indicates that the mapper crashed.
Do you see any dead IMF servers (type obbmsho)?

If there are no mandatory records in the map (MIN of 1 in rec sequence)
then the document should go to purgable.

Richard
2992.2FOR J = 1 to $NumberOfOccurrences(rectyp)GENIE::qmodo.ebo.dec.com::genie::muntColin MuntWed Feb 12 1997 17:1511
Richard,

Thanks for your suggestions.
Concerning my first question, I need to perform a FOR loop over all 
instances of a particular input record, which has a theoretical maximum of 
9999 occurrences. Rather than program a FOR loop with end value 9999 I just 
want to check the effective records read i.e. set the end of the FOR loop 
to "Number of occurrences", but I see no way of doing this unless there is 
some undocumented function?

...colin