View previous topic :: View next topic
|
Author |
Message |
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Hi,
I got a new requirement, where i am going to get a input file of Record length 252 characters. But my old input file has the record length 133. So i need to remove all the records from 134 to 252 and copy it to other file which has the record length of 133 ie.. i need to omit the character from after 133.
My File type is : FB
Please help me fixing this? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Guru,
Quote: |
where i am going to get a input file of Record length 252 characters. But my old input file has the record length 133 |
Strange. Your input file should have got changed only for a specific business reason. Then why should you delete the data and convert ito a file of length 133?
Reason for the same? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
I got a new requirement |
But you did not post the old one yet...
What you have posted can be done just by using OPTION COPY in SYSIN for SORT and using LRECL=133 for SORTOUT -- but yes why do you want to do that as Aaru has asked?
And why do you use this
Quote: |
last three columns from the input |
as a subject line while this seems to be in no relation with body of your thread?
It's just Monday.. not a Psychic day you know...this other thread seems to be quite similar to your subject ...
www.ibmmainframes.com/viewtopic.php?p=197860#197860 |
|
Back to top |
|
|
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Hi
Quote: |
Strange. Your input file should have got changed only for a specific business reason. |
Yes...But for the same business reason they are omitting these records for while passing this file to COBOL program,, Not strange
Anuj...
Sorry for the confusion...My team mate also raised the same ...Sorry again..
Yes. As you said we also thought the same option using OPTION COPY ... But we thought of doing this in efficient way...
Thanks Anuj.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
we thought of doing this in efficient way |
You need to define efficient? At the most you may use INREC along with OPTION COPY ... |
|
Back to top |
|
|
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Hi Anuj,
Yes....OPTION COPY itself did it...So we got the output...
Thanks for ur support. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome. |
|
Back to top |
|
|
|