Moderators: Carlo Sans, jbouche
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I am trying to figure out of there is a way to have my machines offset based on a filed in the data. I have a bunch of records that have a Division listed (300,400,500, etc.). Is there a way to offset when the division changes from 300 to 400 and again when it goes to 500 and so forth? each division has a random amout of records anywhere from 100 to 3000, so I am trying to make it easier on our bindrey department. Thanks in advance.
 
Posts: 23 | Registered: 27 November 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Is this line data?

Look at the BEGINPAGE procedure - you would test for the change here.

Then look at the SETFINIISHING command, it is here you would set the trayt to jog - this assumes your device has this capability.
 
Posts: 587 | Registered: 31 March 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Im not sure what you mean, I am using Database Mode. I was looking at ENDOFSET and SETFINISHING, but I dont know how to tell it to looks for a change.
 
Posts: 23 | Registered: 27 November 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Assuming "Division" is the field name holding the division number you can code something like this in the DBM:

/VAR_prev_div () /INI SETVAR
IF VAR_prev_div Division ne
{ STARTOFSET /VAR_prev_div Division SETVAR }
ENDIF

In addition you should add the following at the beginning of the submission file (before STARTDBM) of in a JDT called before STARTDBM:

/Offset /ON SETFINISHING
 
Posts: 1768 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community