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

How to check a blank value in cobol?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shan

New User


Joined: 10 Aug 2006
Posts: 7

PostPosted: Tue Jan 23, 2007 3:41 pm
Reply with quote

1) i have to check a field whether it is blank or not in cobol program?(not spaces)

2)have to create a blank field in a FB dataset to test this
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Tue Jan 23, 2007 4:05 pm
Reply with quote

shan wrote:
1) i have to check a field whether it is blank or not in cobol program?(not spaces)
2)have to create a blank field in a FB dataset to test this
You hav to help us out first, what is a "blank: if it is not a "space"? Low values? Can you show the hex value of what you consider a blank?
Back to top
View user's profile Send private message
shaikmf

New User


Joined: 06 May 2005
Posts: 3
Location: Hyderabad

PostPosted: Tue Jan 23, 2007 6:55 pm
Reply with quote

Hi Shan,
i hope this will work fine

IF DATA-SET-FB-FIELD NUMERIC
{ COBOL STMTS.}
ELSE
CONTINUE
END-IF
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 23, 2007 7:26 pm
Reply with quote

Hello,

That example does NOT check for any kind of blank. . . .

Please define what the hex value is for the blank you need to check for.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jan 27, 2007 5:08 am
Reply with quote

Hi Shan,

If you're by any chance still out ther, could you possibly mean a non-printable character?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Sat Jan 27, 2007 5:19 am
Reply with quote

mmwife wrote:
If you're by any chance still out there
How many of these "single questions" do you get? It's got to be frustrating icon_rolleyes.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jan 30, 2007 4:41 am
Reply with quote

Hi Bill,

Here's a ques for you:

How do you make a poster with a ques disappear?

Ans: Ask HIM a ques.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Tue Jan 30, 2007 4:50 am
Reply with quote

mmwife wrote:
How do you make a poster with a ques disappear?

Ans: Ask HIM a ques.
icon_eek.gif icon_lol.gif icon_rolleyes.gif what more could I say?????
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top