View previous topic :: View next topic
|
Author |
Message |
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
Hello Team,
I am trying to change a COBOL code to PLI code and I am replacing REDEFINES with UNION. The code is working fine except that I am not able to use the group item as such .
For eg:-
Code: |
DCL 1 cust_info,
2 name1 char(3) init('ab'),
2 contact union,
3 phone CHAR(11),
3 phonedetails,
4 area char(4),
4 no char(7);
|
When I populate the phone variable the same values are getting populated in phonedetails also. But the problem is that when I try to PUT SKIP or try to write the group variable cust_info in to a file , I am getting an error :
Unsupported use of union or structure containing a
union.
Please advise. |
|
Back to top |
|
|
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
Hello Team,
Anybody could help on the above issue pls ? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
From the manual, GC14-7286-00:
Quote: |
IBM1662I S Unsupported use of union or structure containing a union.
Explanation: Unions and structures containing unions may not be used in expressions except when used as an argument to a built-in function such as ADDR or UNSPEC. |
Now tell us, what is your problem? |
|
Back to top |
|
|
|