Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Reg: Formatting the output.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: Reg: Formatting the output.
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: 1288
Location: Chennai, India

PostPosted: Mon Dec 24, 2007 2:22 am    Post subject: Reply to: Reg: Formatting the output.
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us