View previous topic :: View next topic
|
Author |
Message |
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi,
I have a group item like this,
01 NAMES
05 NAME1 PIC X(20) VALUE 'BOBY'
05 NAME2 PIC X(20) VALUE 'JOHN'
05 NAME3 PIC X(30) VALUE 'DAVE'
Now if I display NAMES it will be 'BOBY<16spaces>JOHN<16spaces>DAVE<26spaces>'
I want this to be displayed as 'BOBY<1space>JOHN<1space>DAVE<1space>
How to do this? please help me out in this,
Thanks in advance,
Sakthivel
Please don't use urgent ******* in the title. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Sakthi,
Use string handling commands. |
|
Back to top |
|
|
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
Murali,
I have few commands like 'STRING' in my mind. But I dont know how to code for this requirement . Could you please help me out in this with the actual code??
Thanks,
Sakthivel. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
Back to top |
|
|
Santoshdorge
New User
Joined: 27 Jun 2006 Posts: 48 Location: Pune
|
|
|
|
Hi
Try using
String Name1 delimitted by spaces
ws-space delimitted by size
Name2 delimitted by spaces
ws-space delimitted by size
Name3 delimitted by spaces
into ws-name
end-string.
Thanx,
Santosh. |
|
Back to top |
|
|
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
Thanks Murali/Santhosh.
Thanks a Ton.
Thanks and Regards,
Sakthivel |
|
Back to top |
|
|
|