View previous topic :: View next topic |
Author |
Message |
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Mon Aug 14, 2006 2:41 am Post subject: create program to take care of data manipulation. |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12358 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Mon Aug 14, 2006 3:52 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12358 Topics: 75 Location: San Jose
|
Posted: Mon Aug 14, 2006 6:22 pm Post subject: |
|
|
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 |
|
|
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Tue Aug 15, 2006 3:23 am Post subject: |
|
|
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 |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Tue Aug 15, 2006 10:44 am Post subject: |
|
|
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 |
|
|
ranga_subham Intermediate
Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Thu Aug 17, 2006 2:54 am Post subject: |
|
|
Coolman, Thanks. I was looking for EZT pseudocode.......
I don't know REXX....
TIA. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
|
|
|