IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reg: Formatting the output.


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Sat Dec 22, 2007 5:37 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Dec 24, 2007 2:22 am
Reply with quote

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
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Dec 24, 2007 11:48 am
Reply with quote

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:
Code:
NUMBER = 10
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
Search our Forums:


Back to Top