View previous topic :: View next topic
|
Author |
Message |
NB Gautam
New User
Joined: 29 Aug 2008 Posts: 8 Location: bhubaneswar
|
|
|
|
I have three fields,and i want to apply STRING function.But the problem is one of the field is defined datatype as COMP-3. Is it possible to apply STRING function to those fields. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
CICS Guy wrote: |
each numeric item must be described as an integer and its PICTURE character-string must not contain the symbol P. |
?? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
NB Gautam
New User
Joined: 29 Aug 2008 Posts: 8 Location: bhubaneswar
|
|
|
|
The exact situation is like
There are 3 variables defined as:
77 ws-var1 pic 9(3).
77 ws-var2 pic s9(11) COMP-3.
77 ws-var3 pic x(12).
procedure division.
Move 23 to ws-var1.
Move 34 to ws-var2.
Move 'GAUTAM' to ws-var3.
Now i want to implement STRING function. Is it possible? If yes, please provide me syntax for that. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Have you tried to do the STRING yourself, using the manual as a guide? If not, please do so and then report any problem(s) you encounter. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
What do you want the result of the STRING to look like? |
|
Back to top |
|
|
|