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 

Easytrieve + DB2

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
balu_ver2k2
Beginner


Joined: 29 Jan 2016
Posts: 2
Topics: 1

PostPosted: Sat Jul 16, 2016 8:11 am    Post subject: Easytrieve + DB2 Reply with quote

Hi,

I am looking for easytrieve code for below requirements

File Input of length 10
ColA
AAAAA
BBBBB
CCCC

Output file of length 10
Col A Col B
AAAAA 1111
BBBBB 2222
CCC 3333

Looking for Easyrtive to read file and query DB2 and write in to o/p file
sample query
Select COLB from table where COLA =?

THank you
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jul 16, 2016 11:47 pm    Post subject: Reply with quote

balu_ver2k2,


Please search before posting. Here is a link to the topic whch matches even your topic title


http://www.mvsforums.com/helpboards/viewtopic.php?t=478&highlight=easytrieve+db2
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

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


Joined: 29 Jan 2016
Posts: 2
Topics: 1

PostPosted: Sun Jul 17, 2016 2:03 am    Post subject: reply Reply with quote

Thank You Kolusu. I did see the topic hence I have used the same subject for my reference. Do you mind to share how to input file is read and passed to SQL ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sun Jul 17, 2016 9:04 am    Post subject: Re: reply Reply with quote

balu_ver2k2 wrote:
Thank You Kolusu. I did see the topic hence I have used the same subject for my reference. Do you mind to share how to input file is read and passed to SQL ?



Huh? Did you even read the above given topic? Pay attention to FILE INFILE in the example and you should see how the input file is used. All you need to do is add a couple of working storage variables and define your OUTPUT file
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
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