Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
UNSTRING problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Apurva Ghogale

New User


Joined: 20 Sep 2018
Posts: 6
Location: INDIA

PostPosted: Tue Oct 09, 2018 4:51 pm    Post subject:
Reply with quote

Hi Robert,

Can you please suggest how to resolve the above probelm? What needs to be done if after 1st unstring it causes ON OVERFLOW condition.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8410
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 09, 2018 5:30 pm    Post subject:
Reply with quote

First, you need to understand that this is NOT a problem -- it is the way UNSTRING works!

Second, what needs to be done ON OVERFLOW depends upon the application. Sometimes, the application just wants the first (or first few) field(s) so the ON OVERFLOW can be ignored. Sometimes, the application needs all the data fields and hence a loop would be needed to UNSTRING the first field, move the remaining bytes over, and then repeating the UNSTRING until ON OVERFLOW no longer occurs. If there are a variable number of fields to be discovered, UNSTRING is not a great choice -- reference modification would probably be a better choice as it is less restrictive in how it works.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2064
Location: NY,USA

PostPosted: Tue Oct 09, 2018 7:19 pm    Post subject:
Reply with quote

Apurva, Please start a new post next time instead of replying to any older post.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8410
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 09, 2018 8:02 pm    Post subject:
Reply with quote

I've split the topic from http://ibmmainframes.com/viewtopic.php?t=51383
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem with OVERLAY - BI on SMF Record Ghellar DFSORT/ICETOOL 4 Sat Dec 01, 2018 9:41 pm
No new posts UNSTRING a big string Apurva Ghogale COBOL Programming 16 Thu Sep 20, 2018 12:12 pm
No new posts RPG II Problem with unsigned Packed d... Andi1982 All Other Mainframe Topics 6 Tue Sep 11, 2018 6:11 pm
No new posts Problem with Return or Exit from DCB ... Vishnu Priya M R PL/I & Assembler 6 Thu Aug 23, 2018 9:43 am
No new posts CICS startup problem John Poulakos CICS 3 Tue Jun 12, 2018 9:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us