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

How to avoid null values


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

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Fri May 22, 2009 1:04 pm
Reply with quote

The I variable in BMS will contain null as its default value....how to get space as default??
Back to top
View user's profile Send private message
cvishu

Active User


Joined: 31 Jul 2007
Posts: 136
Location: india

PostPosted: Fri May 22, 2009 2:42 pm
Reply with quote

how about inspect and rplacing all low values by space ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri May 22, 2009 3:07 pm
Reply with quote

Null values are good in maps ... why get rid of them in the first place?
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Fri May 22, 2009 3:09 pm
Reply with quote

Hi vishu i just need to eliminate only default null values....If user inputs any null value then i need to validate it.....
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Fri May 22, 2009 3:11 pm
Reply with quote

If null values are default then i found it as very difficult in distinguishing between user entered one and default values...
Back to top
View user's profile Send private message
cvishu

Active User


Joined: 31 Jul 2007
Posts: 136
Location: india

PostPosted: Fri May 22, 2009 4:22 pm
Reply with quote

i dont get u .. how can a user enter low values ? either he can enter space or leave it blank(in which u get low values) , he cant maully enter low values right ? icon_question.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri May 22, 2009 4:47 pm
Reply with quote

Are you using the MDT to determine which fields were changed?

And if the user tabs to the field and hits the ERASE EOF key, that will replace the field value with LOW-VALUES.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri May 22, 2009 4:55 pm
Reply with quote

maybe with ALT & 000?
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Fri May 22, 2009 6:00 pm
Reply with quote

MDT is set on....But i have even problem in this....
If i enter the value in the map and if i press enter, the map receives the value in the I variable and throws some message in the map and if i again press by not changing the values, then it is not receiving the values again.............. icon_sad.gif
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri May 22, 2009 11:44 pm
Reply with quote

Hi Manigandan Aravindhan

Quote:
MDT is set on....But i have even problem in this....


Since the data is not received into the map variables after pressing "Enter" key, the MDT is not set ON.

If the MDT is not set ON, no data is going to receive into the map variable. MDT can be set ON by the following methods

1. Code FSET in the Map Macro.
2. Move DFHBMFSE to the mapvariable + A field through the COBOL
program if you are using COBOL program
Eg. iF Map variable in the Macro is EMPNO, then code EMPNOA.
3. "Key in" the data in the map fields.

In your case you have to use the second method since first time you are doing a data entry in the map.

Regards
Raghu
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Mon May 25, 2009 6:29 pm
Reply with quote

Thanks Raghu.
Is there any DFH variable to make MDT on and to hilite the variable?
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue May 26, 2009 9:06 am
Reply with quote

Quote:
Is there any DFH variable to make MDT on and to hilite the variable?


this is all expalined in the CICS Applications Programmer Guide.

in addition, you might try asking your co-workers before posting
entry level questions on this board.
Back to top
View user's profile Send private message
Manigandan Aravindhan

New User


Joined: 09 Oct 2007
Posts: 81
Location: India

PostPosted: Tue May 26, 2009 9:41 am
Reply with quote

Hi Earl Haigh,
I searched in the CICS Application Programmer guide but i couldn't find any variable which will on the MDT for the variable and as well as will hilite the variable. and so i had posted this question.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 26, 2009 9:45 am
Reply with quote

publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfhp4/topics/dfhp4_bmsconstants.htm
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue May 26, 2009 4:51 pm
Reply with quote

as Enrico pointed out,
CICS Transaction Server for z/OS Application Programming Reference.
there are many manuals covering CICS.
To develop your craft, you need to read more than one manual.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu May 28, 2009 6:32 am
Reply with quote

Hi Manigandan Aravindhan

Sorry if I came off a little harsh, but

back in my early days of learning CICS, there was no internet, or public
forums to post questions, so I spent many a late night reading manuals and performing trial and error test scenarios.

In addition, what you refer to as variables are still known as Fields
to us old timers.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts How to avoid duplicating a CICS Web S... CICS 0
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top