Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 8500
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: 2299
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: 8500
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 Having problem passing a variable to ... markzasz JCL & VSAM 12 Thu Jul 11, 2019 5:31 pm
No new posts Pipeline scan problem John Poulakos CICS 1 Thu Feb 28, 2019 10:02 pm
This topic is locked: you cannot edit posts or make replies. Problem while Decompressing the ZIP file Nethraa All Other Mainframe Topics 2 Tue Feb 26, 2019 6:55 am
No new posts Problem while Decompressing the ZIP file Nethraa All Other Mainframe Topics 6 Fri Feb 22, 2019 11:41 pm
No new posts Unstring srini24 COBOL Programming 4 Sat Dec 22, 2018 12:18 am

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