Please enable JavaScript to view this site.

COBSTORE will allow you to save information from one page of the spooled file, together with static information if required, and output it to another page. This can be useful if information is only printed on say the first page of an Invoice, Order etc. but is perhaps required to be output on every page.

To Save information call COBSTORE with the following parameters:

Parameter

In

Len

Out

Len

PARM1

Spooled File Data or constant

132


 

PARM2

Spooled File Data or constant

132


 

PARM3

Spooled File Data or constant

132


 

PARM4

Spooled File Data or constant

132


 

PARM5

Spooled File Data or constant

132


 

PARM6

*SAVE + Text ID #1

15


 

#1 The Text ID can be up to 10 characters and should immediately follow the *SAVE .e.g. *SAVEADD1 where ADD1 is the Text ID in order that multiple text lines may be stored by using different Text IDs. If you call COBSTORE with *SAVE and the same Text ID as a previous call without first returning the data then the original stored data, for that Text ID will be overwritten.

To Return information call COBSTORE with the following parameters:

Parameter

In

Len

Out

Len

PARM1


 

Saved data from PARM1

132

PARM2


 

Saved data from PARM2

132

PARM3


 

Saved data from PARM3

132

PARM4


 

Saved data from PARM4

132

PARM5


 

Saved data from PARM5

132

PARM6

*RETN + Text ID #2

15


 

#2 Here the Text ID must be the ID for the data that you wish to return. The data will be returned in the same parameters where it was originally stored e.g. data stored in PARM1 of the *SAVE call will be returned in PARM1 of the *RETN.

To Clear all saved information call COBSTORE with the following parameters:

Parameter

In

Len

Out

Len

PARM1


 


 

PARM2


 


 

PARM3


 


 

PARM4


 


 

PARM5


 


 

PARM6

*LAST

15


 

Note: This call would normally only be used under the condition PAGE EQ *LAST.