Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to avoid null values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to avoid null values
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    Post subject:
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: 7905
Location: Bellevue, IA

PostPosted: Fri May 22, 2009 3:07 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 7905
Location: Bellevue, IA

PostPosted: Fri May 22, 2009 4:47 pm    Post subject:
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    Post subject:
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    Post subject:
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: 186
Location: chennai

PostPosted: Fri May 22, 2009 11:44 pm    Post subject: Reply to: How to avoid null values
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    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue May 26, 2009 9:45 am    Post subject: Reply to: How to avoid null values
Reply with quote

http://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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us