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

supressing the null and special chartacter


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Fri Jul 24, 2009 8:14 pm
Reply with quote

Hi ,

I am getting values in my report file as . . AND . . MUT FUND my requirement is to supress these.

Like for . . I should have spaces and for . .MUT FUND I should get only MUT FUND

I have tried checking for NULL VALUES ,LOW AND HIGH VALUES but that didn't work.The hex equivalent for the first byte is 00 and for the second is 1E(which measns a record separator in CHAR)

Can anyone tell me how can I suppress it?The value is as under

PROD TYP CD
.. should be spaces here
.. should be spaces here
..MUT FUND should be MUT FUND here like below
MUT FUND

Please note that these are not NULL values as I said first DOT is 10 in hex and second one is 1E in hex..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 24, 2009 8:30 pm
Reply with quote

what application generates the dataset ??
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jul 24, 2009 8:39 pm
Reply with quote

Kamlesh, let's go over some of the "rules" for posting in the "Interview Questions" forum:

1. You need to post both the question that was asked and the answer you gave, and the reason you think that your answer is the right one. A forum member can tell you if they think you were right or if you were wrong and if so, why.

2. We need to know the scope of the question. What is it concerning (a specific language, a specific process, a specific technology, etc.). What level of a position is the question supposed to be for (beginner, intermediate, expert)?

Thanks for your cooperation.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 24, 2009 9:00 pm
Reply with quote

Quote:
not NULL values


there is no such thing......................
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 24, 2009 9:46 pm
Reply with quote

Quote:
I am getting values in my report file as . . AND . . MUT FUND my requirement is to supress these.

Like for . . I should have spaces and for . .MUT FUND I should get only MUT FUND
from the posting style does not look like an interview question icon_smile.gif
let's wait for the TS to clarify the issue
Back to top
View user's profile Send private message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Mon Jul 27, 2009 2:13 pm
Reply with quote

Sorry for the confusion..

It was not an interview question really..it was the problem I was facing during my cobol programming which genarates a file reading a table and I am getting those invalid chars in one of my fields of the file..i have posted the same query under the mainframes cobol index now...

Once again sorry for the confusion..
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts Uploading from desktop, a CSV file, s... DB2 2
No new posts Converting Hex to PD Special Condition SYNCSORT 3
Search our Forums:

Back to Top