Page 1 of 1

Initializing in easytrieve

PostPosted: Thu Nov 11, 2010 11:12 am
by Suganya.Shanmugam
how to initialize the comp-3 variables in easytrieve.
variable-1 324 5 P 2 (PIC S9(7)V9(2) COMP-3.)
variable-2 329 5 P 2
variable-3 334 5 P 2

i have declared these variables in the file section. how to initialize these variables in the job section.
is there any way to group initialization?

Re: Initializing in easytrieve

PostPosted: Thu Nov 11, 2010 11:27 am
by dick scherrer
Hello and welcome to the forum,

Just move 0 (zero) to those variables.

Like:
MOVE 0 to variable-1

The variables posted are not a group. . . By defining 2 groups and moving the one with the "initial values" to the "real" group, a group can be "initialized".

Re: Initializing in easytrieve

PostPosted: Thu Nov 11, 2010 2:34 pm
by Suganya.Shanmugam
hi thanks for your info.

variable-1 324 5 P 2 (PIC S9(7)V9(2) COMP-3.)
variable-2 329 5 P 2
variable-3 334 5 P 2

can i define these variables as the group by any means and move zeros to that group elements.

thanks in advance

Re: Initializing in easytrieve

PostPosted: Fri Nov 12, 2010 1:02 am
by dick scherrer
Hello,

Yes, by doing what i mentioned before.

You cannot move "zeros" to a group containing packed-decimal fields.