IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IGYPS2060-S The sending operand ...was an invalid type


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Thu Apr 23, 2009 2:32 am
Reply with quote

I have compiled the sample program I found in Accessing UCB from a COBOL program and it has generated the following error. Could anyone please help.

Thanks.


Code:
 000122        01  TIOT-SEG.
 000123            05  TIO-LEN            PIC X.
 000124            05  FILLER             PIC X(03).
 000125            05  DD-NAME            PIC X(08).
 000126            05  SWA-V-ADDR         PIC X(03).
 000127            05  FILLER             PIC X(02).
 000128            05  UCB-ADDR           PIC X(03).


000322                    SET WS-UCB-POINTER          TO UCB-ADDR.


=000322==> IGYPS2060-S The sending operand "UCB-ADDR" in the "SET" statement was an invalid type. The statement was discarded.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 2:43 am
Reply with quote

identifier-6
Sending field.
Must be described as USAGE IS POINTER.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 23, 2009 3:01 am
Reply with quote

Hello,

You have tried to move an x(3) field to a pointer - which is not allowed.

You need to resolve this by moving x(3) to x(3) or pointer to pointer. SET won't work for the x(3) fields. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 23, 2009 3:59 am
Reply with quote

you need to contact qzphc5,
since he was the person offering this code.
even he said that he was having problems.
and you noticed, nobody provided assistance.

If you really want to do this, google and find something that works.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts SMF record type 30 JCL & VSAM 8
No new posts Invalid URL in Sticky topic TSO/ISPF 1
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts How to append Previous date into a S... JCL & VSAM 2
Search our Forums:

Back to Top