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

Data loss on CICS map


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Fri Jan 04, 2008 10:43 am
Reply with quote

Hi,

I am sending a Map to Terminal from Programme through
SEND MAP
MAPSET
FROM
command. But in the Screen i am getting Data loss means i want to display the 1050 chanracters on the screen, but it is displaying only 999 characters, remaining 51 chars are getting lossed. I checked through the SMARTTEST tool, it has all the values in the FROM option of SEND MAP command, but when it send to Terminal 51 chars are not displaying. It is displaying for the New Test cases after the code changes & but for the existing records it's happening like this. Please let me know how to resolve this issue.
Back to top
View user's profile Send private message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Fri Jan 04, 2008 10:45 am
Reply with quote

Hi,

Please help me to resolve this issue ASAP.....
Back to top
View user's profile Send private message
ahalyah

New User


Joined: 13 Dec 2007
Posts: 25
Location: india

PostPosted: Fri Jan 04, 2008 10:52 am
Reply with quote

[quote="tald_raghu"]Hi,

It is displaying for the New Test cases after the code changes & but for the existing records it's happening like this.


Have u taken the new copy of the map by using
CEMT S MAP(MAP NAME) NE ??
Back to top
View user's profile Send private message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Sat Jan 05, 2008 12:53 pm
Reply with quote

Hi Ahalya,

Thanks for your suggestion.I did the Newcopy still iam facing the same issue.
I will explain you cleraly before & After changes.

This programme fetches the DB2 data from table & displays on the Terminal

Before code change:

Objective: Filed1 = 175 char, Field2 = 175 char, Field3,...
Field1 CHAR(175)
Field2 CHAR(175)

Currently Field1+field2=350 chars are displaying in 7 line in
only ONE Screen.

i.e field1 175th char will finish in 4th line, & 176th char(1st char of field2) starts
immediatley to field1 in 4th line.
5,6,7th line displays the field2 data on the Screen



After code change:

Objective: Filed1 = 275 char, Field2 = 275 char, Field3,...
Field1 VARCHAR(175)
Field2 VARCHAR(175)

To display the 550 chars in 2 screen along with other data. i.e
Screen1 = Field1(275)+Fiel2(25chars) 6lines
Screen2 =Field2(250chars) 5lines

In Screen1 275th char of Field1 displays on the 6th line &
276 to 300 chars are from the field2(1:25) on the 6th line.

In Screen2 250 chars of Field2 displaying in 5lines along with other
data.

The test cases crated after code changes are displaying properly in Screen1
& Screen2.

What iam facing is in Screen1, is for the OLD records existing
DB2 tables which were present in the Before code changes
not displyaing the Field2(1:25) chars on the 6th line of Screen1
& Screen2 displays the 250chars of Field2 correctly.


I checked through Smarttest the Symbolic Map variable of 6th
line has the Field2 data i.e 1:25 chars. But not displaying
on the Screen1. Even in the From() option of the Send MAP command
has the data, but not displaying on the Screen1. Even Smarttest
not able to track where these 25chars getting lossed once the
SEND MAP command Issued in Programme.

Please helpme resolve this issue ASAP.
Back to top
View user's profile Send private message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Sat Jan 05, 2008 12:56 pm
Reply with quote

Hi,

Sorry make correction for the AFter the code changes.
Field1 VARCHAR(275)
Field2 VARCHAR(275)
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Jan 05, 2008 10:37 pm
Reply with quote

Your description is very confusing.

can you give example of the BMS map copybooks for screen1 and screen2?

and an example of the send map command you are using.

what language are you coding in ?
Back to top
View user's profile Send private message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Mon Jan 07, 2008 10:17 am
Reply with quote

Hi,

The language is COBOL,DB2. i have attached the example for the reference.


Say Mapset name: Screen
Say Mapname :Screen
Screen1:


Code:
   ---------------------------------------------------------------------------------
   |1         Screen1-Name   
   |2      
   |3Name:      PhNO:
   |4
   |5    Name Charcateristics:
   |6
   |7    Field1 Begins 1111111111111111111111111111111111111111111111111111     
   |8    111111111111111111111111111111111111111111111111111111111111111111   
   |9    111111111111111111111111111111111111111111111111111111111111111111
   |0    111111111111111111111111111111111111111111111111111111111111111111
   |1    111111111111111111111111111111111111111111111111111111111111111111
   |2    11111111111111Filed1EndsFiled2 Begins22222222222222222222222222222
   |3
   |4
   |5
   |6
   |7
   |8
   |9
   |0
   |1
   |2
   |3
   |4       
   ---------------------------------------------------------------------------------


Screen2:


Code:
   ---------------------------------------------------------------------------------
   |1         Screen2-Name   
   |2      
   |3Name:      PhNO:
   |4
   |5    Name Charcateristics:
   |6
   |7    222222222222222222222222222222222222222222222222222222222222222222
   |8    222222222222222222222222222222222222222222222222222222222222222222   
   |9    222222222222222222222222222222222222222222222222222222222222222222
   |0    222222222222222222222222222222222222222222222222222222222222222222
   |1    2222222222222222222222222222222222222FIELD2Ends
   |2   
   |3
   |4
   |5
   |6
   |7
   |8
   |9
   |0
   |1
   |2
   |3
   |4
   ---------------------------------------------------------------------------------



Code:
Exec  CICS send map(Screen)
           Mapset(Screen)
           FROM(ScreenO)
           ERASE
ENd-Exec


When i send Map to terminal the Fieldd2 data not displaying on the 12th line of Screen1, it displays only
till the end Field1 data, after that field2 data not displyaing for the old records
which were present before code changes.

The length mentioned is for the example purpose.
Back to top
View user's profile Send private message
tald_raghu

New User


Joined: 04 Jan 2008
Posts: 6
Location: Bangalore

PostPosted: Mon Jan 07, 2008 10:19 am
Reply with quote

Screen size is 24X80
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Jan 07, 2008 10:51 am
Reply with quote

Which kind of MOVE do you do to achieve:
Quote:
Screen1 = Field1(275)+Fiel2(25chars)
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 07, 2008 9:53 pm
Reply with quote

tald_raghu wrote:
Please helpme resolve this issue ASAP.
Please provide the BMS definations for the field/fields and the syntax of the MOVE.
Also include the defination of the sending field.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top