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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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