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

Accenture question about sort


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top