View previous topic :: View next topic
|
Author |
Message |
abhishek mitra
New User
Joined: 24 Feb 2008 Posts: 48 Location: Kolkata
|
|
|
|
Hi,
I was trying to check for whether a value is coming spaces or blanks from the CICS screen. If it is coming spaces or blank I shall update NULL in table.
the field which catches the data in the CICS is Numeric and the field I use in the Cobol that is too Numeric.
Can anyone please help me to get the logic. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
after receiving the screen and interrogating the field, if the input screen field is <= spaces (BLANKS????? that is not a cobol term) then set the null-indicator for that column to -1, else move the value to the host variable used for the column in the insert command and set the null-indicator to zero. |
|
Back to top |
|
|
abhishek mitra
New User
Joined: 24 Feb 2008 Posts: 48 Location: Kolkata
|
|
|
|
dbzTHEdinosauer wrote: |
after receiving the screen and interrogating the field, if the input screen field is <= spaces (BLANKS????? that is not a cobol term) then set the null-indicator for that column to -1, else move the value to the host variable used for the column in the insert command and set the null-indicator to zero. |
Hi,
thanks for your reply. By blanks I did mean that in the CICS screen the field has not been entered at all. It has been left vacant. How d i check for that? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I do not remember the name of the mask but in this case the usual
procedure is to chek if the MDT is on
MDT = modified data tag |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
Back to top |
|
|
|