View previous topic :: View next topic
|
Author |
Message |
muthukannan
New User
Joined: 03 Aug 2006 Posts: 42 Location: Chennai
|
|
|
|
Hi,
After copying a data from file1 i want to write it in a new file and in a new column using file-aid.
for e.g:
File1:
123455677 Number = 10
In this file i want to copy the "Number = 10" and write it a another file like
File2:
Number = 10.
Someone please guide me to do that. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
MK,
You can use FILEAID/SORT Utilities to create the output file. Please provide us few more details on your requirement. Do you want all the fields starting from column 11 till the end to be copied to the output file? |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
Code: |
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD *
----+----1----+----2----+---
123455677 NUMBER = 10
/*
//DD01O DD SYSOUT=*
//SYSIN DD *
$$DD01 COPY MOVE=(1,11,11)
/*
|
output DD01O:
|
|
Back to top |
|
|
|