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 

create program to take care of data manipulation.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Mon Aug 14, 2006 2:41 am    Post subject: create program to take care of data manipulation. Reply with quote

Hi

I have one request, I have to create program to take care the data manipulation.

This program have to maintain below properties
1. Input file length and output file length is not constant( i.e files may have the length of 100, 80, 200 etc
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Aug 14, 2006 4:34 am    Post subject: Reply with quote

ranga_subham,

1.Easytrieve is capable of doing it.

Kolusu
_________________
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
coolman
Intermediate


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

PostPosted: Mon Aug 14, 2006 3:52 pm    Post subject: Reply with quote

Kolusu,

I was just going through this post - Can't we just make the I/P file to have the maximum length (32670, I may not be 100 % right on this number) and then inside the program determine the length of the o/p file and dynamically create it within the program.
________
marijuana vaporizer


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


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

PostPosted: Mon Aug 14, 2006 6:22 pm    Post subject: Reply with quote

coolman,

how are you going to read a 80 byte file into a 32760 byte file? Your select does not match the file attributes and your pgm will abend

Kolusu
_________________
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
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Tue Aug 15, 2006 3:23 am    Post subject: Reply with quote

Thank you very much.............Would you please provide the pseudocode, if possible.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
coolman
Intermediate


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

PostPosted: Tue Aug 15, 2006 10:44 am    Post subject: Reply with quote

holy ****, I just assumed that we could copy over the I/P file to a file with max. LRECL and then use it within the program. Ranga_Subham doesn't want it that way, though

Ranga_Subham,

Inaddition to EZT, you can also do it using REXX and it it's want to be strictly COBOL, you can call this routine from your COBOL program itself. btw,what pseudocode are your looking for here?
________
Honda NX650 Dominator


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


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Thu Aug 17, 2006 2:54 am    Post subject: Reply with quote

Coolman, Thanks. I was looking for EZT pseudocode.......

I don't know REXX.... Embarassed

TIA.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
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 -> Interview Q & A 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