Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

i want to know how to copy 10 records from...............

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> FILE-AID
  View previous topic :: View next topic  
Author Message
jumi
Member


Joined: 24 Jun 2009
Posts: 1

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 24, 2009 12:51 pm    Post subject: i want to know how to copy 10 records from............... Reply with quote

Hi

Can you tell me how to copy only 10 records from a file having 1000 records to another file using file-aid?

what types of files can be processed using file-aid? all types of files?
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

JACK
Member


Joined: 30 Jan 2006
Posts: 20

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 24, 2009 2:36 pm    Post subject: FILE-AID commands Reply with quote

try using following code

Code:

$$DD01  COPY OUT=60



Refer following thread posted by Anuj

http://www.mainframegurukul.com/MainframeGuru/Frequently-used-commands-in-FileAid-post3669.html
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Dave E
Member


Joined: 25 Jun 2009
Posts: 9

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Jun 25, 2009 8:01 pm    Post subject: Reply with quote

Hi,

This is really easy.
1. Open the file that you want to copy records into. Then type F2 on the command line an press enter. This will open another editor window for you.

2. Now, open the file you want to copy records FROM. Use the C line command to select the records you want to copy and then type CUT on the command line, then press ENTER. You can keep doing this until you have copied all the records you want into memory. Note, you can also use the CC block command to select a set of records in the file. Once you have selected all your records, type RETURN on the command kine and press enter. This will close this edit window and return you to your original edit window.

3. Type A (for after) or B (for before) line commands to indicate where you want to insert the copied rows, then type PASTE on the command line and press enter. This will put all rows from memory into the file. Note that this is more sophisticated than the Windows copy/paste because it copies the whole row, regardless of the record length. Job done!

I hope this helps.

Cheers.
_________________
Dave E
Software Engineer
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jun 26, 2009 8:47 pm    Post subject: Reply with quote

Hi Dave,

Why do you suggest for F2, I'm not sure? File-Aid Batch job with following control-cards
Code:
$$DD01  COPY OUT=10
should do what OP needs, isn't it?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arcvns
Member


Joined: 30 May 2009
Posts: 28
Location: Chennai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jul 01, 2009 8:21 am    Post subject: Reply with quote

Anuj,

I think Dave was trying to explain an "online" approach. Smile
_________________
Arun
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jul 01, 2009 3:50 pm    Post subject: Reply with quote

Arun -- my question is why F2?

Please try this at your end:
Quote:
Open the file that you want to copy records into. Then type F2 on the command line an press enter. This will open another editor window for you.
I'm not sure how to use that.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Dave E
Member


Joined: 25 Jun 2009
Posts: 9

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Jul 14, 2009 5:45 pm    Post subject: Reply with quote

Hi,

Just to be clear, when I say F2, I do not mean the function2 button on the keyboard. The F2 command opens a new editor window in File-AID. Thus enabling you to cut and paste the records you want. These records can be consecutive or you can select each one manually, from anywhere in the file.

Not many people are aware of some of these "golden nuggets" in File-AID.

And yes, you can do this in batch. Obviously you will need to think about your selection criteria if you only want to copy specific records into the new file.

Cheers.
_________________
Dave E
Software Engineer
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jul 17, 2009 10:47 pm    Post subject: Reply with quote

Hi Dave,

Probaly I'm still not sure, is F2=formatted-edit?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sat Jan 30, 2016 11:03 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> FILE-AID All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Reg: DDIO file in XPED 8 simha 15682 Wed Jan 27, 2016 8:55 pm
academyindia4 View latest post
No new posts patching a file 3 devmain 7006 Sat Jan 30, 2010 6:48 pm
Anuj Dhawan View latest post
No new posts REMOVE HIGH VALUE FROM THE EXTRACT FILE 2 Guest 6920 Fri May 09, 2008 11:04 am
Krishna View latest post
No new posts SELECT clause for Flat / ESDS file. 2 rangab 7531 Sat Mar 22, 2008 1:46 pm
sai View latest post
No new posts File Status in COBOL 2 sziauddin 4670 Tue Apr 04, 2006 2:35 pm
Guest View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-4233.html