View previous topic :: View next topic |
Author |
Message |
cyberspecies Beginner

Joined: 26 Dec 2002 Posts: 3 Topics: 2
|
Posted: Wed May 14, 2003 1:40 pm Post subject: Cobol question - Initializing fillers |
|
|
Please let me know the different ways of initializing fillers in a variable length record. INITIALIZE doesn't seem to do the job for VB records.
I have a para that populates all the individual fields except the fillers (ofcourse) and so the output file has low-values in the filler areas.
Can I just move SPACES to the record and that should take care of it?
If there are other simple ways (except for the one where we create a work area and initialize and move it to the output record), please let me know.
Cheers
Cyberspecies. |
|
Back to top |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Wed May 14, 2003 3:08 pm Post subject: |
|
|
You may initialize at the 01 level or
10 FILLER PIC X(??) VALUE SPACES. |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu May 15, 2003 12:17 am Post subject: |
|
|
cyberspecies,
Moving spaces should also work.
Dibakar. |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Thu May 15, 2003 12:33 am Post subject: |
|
|
Hi CS,
You can do as Suresh suggests if the rec desc is not in the FD or move spaces to the 01 level BEFORE 8) the other moves.
BTW, the VB rec has nothing to do w/your problem, you can never INITIALIZE a field named "FILLER". One work around it to call them FILLER1, 2, etc.
Regards, Jack. |
|
Back to top |
|
 |
|
|