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. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

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