Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to check a blank value in cobol?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to check a blank value in cobol?
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: 3158
Location: Tucson AZ

PostPosted: Tue Jan 23, 2007 4:05 pm    Post subject: Re: [b]how to check a blank value in cobol?[/b]
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    Post subject:
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

Site Director


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

PostPosted: Tue Jan 23, 2007 7:26 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Sat Jan 27, 2007 5:19 am    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Jan 30, 2007 4:50 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us