Art; The data set essentially imports two variables, the NS (Nursing Station) and the count. This comes from a frequency output set; The values created here are: the pagex that is used for the table of contents, the pageurl that is used later as links, and the pager var that I am attempting to use as a way to correctly delegate the correct pagex variable depending on the number of records. the Sorry for the wonky code in terms of display, this is a cut and paste issue. In short, what I am attempting to do is to retain values of the pagex and pager so that in the case of 10CVT above, it should start on page 2, and since it has 37 records, the next record 10ICC should start on page 4. SInce that unit only has 7 records, 11 NEURO ICU should be on pg 6, etc etc. I hope this makes any sense Art as my head is now spinning as I am sure you can understand. and yes the values are not matching, and that is the problem. I am not sure if it is a logic issue or some other parameter that I am missing. Thank you for your time. Lawrence
... View more