Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Query regarding sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srajanbose
Warnings : 1

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Fri Oct 31, 2008 2:42 pm    Post subject: Query regarding sort
Reply with quote

Quote:

Hi,

Below is my JCL
Code:
             
//STEP1    EXEC PGM=SORT                                                   
//SYSOUT     DD SYSOUT=*                                               
//SORTIN     DD DSN=Z000470.REXX.TOOL.IP,DISP=SHR                       
//SORTOUT    DD DSN=Z000470.REXX.TOOL.OUTPUT,                           
//             DISP=(,CATLG,DELETE),                                 
//             UNIT=SYSDA,                                             
//             SPACE=(CYL,(10,5),RLSE)
//SYSIN      DD *                                                       
  SORT FIELDS=(54,8,CH,A)                                               
/*                       
Quote:
The input file contains
Code:
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRAD;  $AGSDICO     
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRGD;  MGRETLR       
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRRD;  BRENQSL       
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRRD;  TRSTA2       
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRUD;  $FANOGP       
APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLSEX0D;  FXDOSM7
Quote:
The output i got is
Code:
OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRGD;.fMGRETLR.¥APV;DPR;OR7SQE.PFI.L03.D25
0608.DPR.DPR.RPL.RLDPRRD;.fBRENQSL.¥APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.R
.. F...&¥APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRAD;.g$AGSDICO.¥APV;DPR;
LDPRRD;.eTRSTA2.¥APV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLDPRUD;.f$FANOGP.¥A
PV;DPR;OR7SQE.PFI.L03.D250608.DPR.DPR.RPL.RLSEX0D;.fFXDOSM7.. 
Quote:
Can anyone clarify why the output came like this
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Oct 31, 2008 3:13 pm    Post subject: Reply to: Query regarding sort
Reply with quote

Why don't you start by posting the entire contents of your SYSOUT output.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8631
Location: Back in jolly old England

PostPosted: Fri Oct 31, 2008 3:22 pm    Post subject: Re: Reply to: Query regarding sort
Reply with quote

Krishnadeva Reddy wrote:
LRECL parm is missing.
Try giving LRECL parm same as input dataset or use referback.
Thanks,
Krishna.

And if the LRECL is different from the input ?

That is just one of the reasons that the SYSOUT was requested, to be sure of things before suggesting an answer.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts reg query on DYNALLOC feature raghuraman123 SYNCSORT 12 Wed Jan 10, 2018 2:42 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us