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

Problem with STRING function at the time of compilation


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

New User


Joined: 11 Apr 2006
Posts: 93

PostPosted: Wed Jul 16, 2008 11:42 am
Reply with quote

I am facing problem with STRING function,

05 LK-ARWENQ-INDATA-FRMSOURCE.
10 LK-DBL-SEND-ABA PIC S9(9) USAGE COMP.
10 LK-DBL-RECV-ABA PIC S9(9) USAGE COMP.
10 LK-DBL-RESEND-IND PIC X(1).
10 LK-DBL-FILE-RECV-IND PIC S9(4) USAGE COMP.
10 LK-DBL-CREATE-DATE PIC X(10).
10 LK-DBL-CREATE-TIME PIC X(8).
10 LK-DBL-BUSINESS-DATE PIC X(10).
10 LK-DBL-CASH-LET-ID PIC X(8).
10 LK-DBL-BUNDLE-ID PIC X(10).
10 LK-DBL-HEADER PIC X(1).

05 WS-DYN-OPEN.
49 WS-OPEN-LEN PIC S9(04) VALUE +4000
49 WS-DYNCURSOR-OPEN PIC X(4000) VALUE SPACES.


STRING LK-DBL-SEND-ABA,
LK-DBL-RECV-ABA,
LK-DBL-RESEND-IND,
LK-DBL-FILE-RECV-IND,
LK-DBL-CREATE-DATE,
LK-DBL-CREATE-TIME,
LK-DBL-BUSINESS-DATE,
LK-DBL-CASH-LET-ID,
LK-DBL-BUNDLE-ID,
LK-DBL-HEADER,
DELIMITED BY SIZE
INTO WS-DYNCURSOR-OPEN
END-STRING.

i am getting this error message at the time of compilation.

IGYPA3101-S "STRING" or "DELIMITED BY" identifier "LK-DBL-SEND-ABA (BINARY INTEGER)" was not a group item, an elementary item with "USAGE DISPLAY", "USAGE DISPLAY1"or "USAGE NATIONAL" nor an alphanumeric or national function. The statement was discarded.

Please let me know what is wrong in the String function?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Jul 16, 2008 12:15 pm
Reply with quote

Quote:

Please let me know what is wrong in the String function?



"STRING" or "DELIMITED BY" identifier "LK-DBL-SEND-ABA (BINARY INTEGER)" was not a group item, an elementary item with "USAGE DISPLAY", "USAGE DISPLAY1"or "USAGE NATIONAL" nor an alphanumeric or national function.


You can not have a Binary-Integer (LK-DBL-SEND-ABA) as a sending field in a string instruction.
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: Wed Jul 16, 2008 8:44 pm
Reply with quote

Hello,

Quote:
You can not have a Binary-Integer (LK-DBL-SEND-ABA) as a sending field in a string instruction.
Hint: You might redefine binary fields as PIC X fields and use the redefinitions in the STRING. . .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jul 16, 2008 9:03 pm
Reply with quote

If you want LK-DBL-RECV-ABA and LK-DBL-FILE-RECV-IND to be "readable" in WS-DYNCURSOR-OPEN, move those 2 binary items to fields defined as DISPLAY, then refer to those new fields in your STRING verb.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts To get the the current time DFSORT/ICETOOL 13
Search our Forums:

Back to Top