Initializing in easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Initializing in easytrieve

Postby Suganya.Shanmugam » Thu Nov 11, 2010 11:12 am

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?
Suganya.Shanmugam
 
Posts: 7
Joined: Thu Nov 11, 2010 10:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: Initializing in easytrieve

Postby dick scherrer » Thu Nov 11, 2010 11:27 am

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".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Initializing in easytrieve

Postby Suganya.Shanmugam » Thu Nov 11, 2010 2:34 pm

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
Suganya.Shanmugam
 
Posts: 7
Joined: Thu Nov 11, 2010 10:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: Initializing in easytrieve

Postby dick scherrer » Fri Nov 12, 2010 1:02 am

Hello,

Yes, by doing what i mentioned before.

You cannot move "zeros" to a group containing packed-decimal fields.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post