MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get selected records giving file as input
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 18, 2006 6:05 am    Post subject: Reply with quote

js01,

Looks like status is either an Integer or Decimal field. So it is unloaded but it is not in displayable format. You need to use DIGITS or CHAR function to see it in displayable format. Spufi automatically reformats the data for you. Look at the SYSPUNCH output in sysout and it will list all the columns unloaded and their position in the output dataset.

Shekar123,

It does not matter how many times the status value is repeated in the IN clause. on the SQL. DB2 looks as it as Long list of variables and selects all the rows satisfying the conditions mentioned treating the values as embedded OR condition

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Fri Aug 18, 2006 7:40 pm    Post subject: Reply with quote

Sekhar/kolusu,

Yes! i could see the field in SYSPUNCH ,and dispalyed when i use CHAR function thank you very much.


Other question:

What is the maximum length of the SELECT query that we can execute
actually when I try to execute above query thru spufi with input as 500 line (IN clause) got an error saying that length is exceeded

thanks in advance.
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Sat Aug 19, 2006 1:13 pm    Post subject: Reply with quote

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQH11/A.0?DT=20010718164132
________
easy vape vaporizer


Last edited by coolman on Sat Feb 05, 2011 1:49 am; edited 1 time in total
Back to top
View user's profile Send private message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Mon Aug 21, 2006 6:43 pm    Post subject: Reply with quote

Thank you Coolman
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group