View previous topic :: View next topic
|
Author |
Message |
Pradip kumar Mohanty
New User
Joined: 16 Sep 2007 Posts: 33 Location: India
|
|
|
|
Hi ,
I have the following requirement :-
I have to insert a field which will contain a constat NUMERIC '9' in all its
occurences in the file ,Ex:
Input file :
File A
------------
Code: |
field1(2 bytes) field2(1 byte) field 3(1 byte)
----------------- ---------------- -----------------
aa b c
df v m
.. . .
|
I have to insert the field between field1 and field 2.
Pardon my ignorance.I'm going thru the mannual , hope to get the solution on my own.
Regards. |
|
Back to top |
|
|
Pradip kumar Mohanty
New User
Joined: 16 Sep 2007 Posts: 33 Location: India
|
|
|
|
Opps , the formatting got lost for the records. 'b' and 'c' are the second and third recs respectively.
Some more info : the input file is a sequential file with FB format.
Essentially I have to increase the RECLEN by 2 bytes ( the constant is '09' for example).
Just a pointer will be enough ; I can customize to my exact need.
Thanks. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Pradip,
Quote: |
Just a pointer will be enough ; I can customize to my exact need. |
Its always good to do some 'R' (referring manual) work....
You could go with either INREC/OUTREC statement. Go thru manuals for usag e and syntax.
You could also use forum's 'search' facility, as this was discussed many times earlier. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Pradip,
You can use DFSORT statements like this:
Code: |
OPTION COPY
INREC BUILD=(1,2,C'09',3,2)
|
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
|