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
 

 

Accenture question about sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
utpal

New User


Joined: 05 Feb 2006
Posts: 1
Location: Pune

PostPosted: Sun Feb 05, 2006 11:12 am    Post subject: Accenture question about sort
Reply with quote

Hi I am Utpal
could anyone please resolve the problem as mentioned under :
This query was asked in Accenture

I have 10 plans & I have 10 load modules how shall I know that which load module belongs which plan.

I have a file contains 900 records.I want to sort and copy into 3 files which will contain 300 each.
icon_razz.gif
Back to top
View user's profile Send private message

rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Mon Feb 06, 2006 3:52 pm    Post subject:
Reply with quote

Hi,
Try this.........

SORT JCL REMOVED. DO NOT COPY FROM OTHER SITES. COMPLAINTS RECEIVED.



this might work....

corrections welcomed....

Thanks,
Rajesh.
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Mon Feb 06, 2006 4:43 pm    Post subject:
Reply with quote

Hi,
For the Second part, Rajesh is Correct.
For the First part of ur Query, We could get the Plan name from our administrator as same as the Load module name of our program, in which case you could easily identify Plan Vs Corresponding program.
I would have answered so, if I were in your position.

Any Corrections - welcome.
Back to top
View user's profile Send private message
maggiebms

New User


Joined: 23 May 2005
Posts: 16

PostPosted: Mon Feb 06, 2006 5:39 pm    Post subject: Re: About sort
Reply with quote

For ur second qn, the answer is

//JOBCARD.........

//STEP1 EXEC PGM=SORT
;
;
//F1 DD DSN=NEW1,DISP=NEW
//F2 DD DSN=NEW1,DISP=NEW
//F3 DD DSN=NEW1,DISP=NEW

;
//SYSIN DD *

option copy
OUTREC FNAMES = (F1,F2,F3), SPLITBY = 300
//

Correct me If I am wrong


Maggie
Back to top
View user's profile Send private message
fixdoubts

New User


Joined: 21 Oct 2005
Posts: 54

PostPosted: Mon Feb 06, 2006 5:39 pm    Post subject:
Reply with quote

Hi,

For the second one the instream statement

OUTFIL FNAMES=(01,02,03),SPLITBY=300

will do i think

Correct me if am wrong,

Regards,
Back to top
View user's profile Send private message
maggiebms

New User


Joined: 23 May 2005
Posts: 16

PostPosted: Mon Feb 06, 2006 5:40 pm    Post subject: Re: About sort
Reply with quote

sorry ie OUTFIL not OUTREC



- - Maggie
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


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