MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting a msg "Alternate parm used" while using so

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Fri May 13, 2011 11:30 am    Post subject: Getting a msg "Alternate parm used" while using so Reply with quote

Hi,

While using the simple sort, my job is getting run with maxcc=00 but i m not getting the desired result after that.

JCL:
-----
Code:

//TECH301J JOB XYZ, CLASS=A,MSGCLASS=A,NOTIFY=TECH301
//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=TECH301.SORTIN,DISP=SHR
//SORTOU DD DSN=TECH301.SORTOU,DISP=OLD
//SYSIN DD *
   SORT FIELDS=(1,4,CH,A)
/*

SORTIN FILE:
---------------
Code:

2222
7777
1111
4444

IDEAL OUTPUT SHOULD BE SORTOU FILE:
------------------------------------------------
Code:

1111
2222
4444
7777

I M GETTING THE BELOW:
------------------------------
Code:


2222
7777
1111
4444

WHEN I SEE THE SPOOL. I FOUND ONE MSG SAYING THAT "ALTERNATE PARM USED".
THE JOB IS RUNNING IS FINE BUT I AM NOT GETTING THE DESIRED OUTPUT.

PLEASE HELP
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri May 13, 2011 11:44 am    Post subject: Reply with quote

shash_modi,


I am not sure as to why you posted this question in Interview Q&A forum. I see that you are using DISP=OLD on your output JCL. How about deleting it and allocating it before you run the job and make sure it is empty.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri May 13, 2011 11:46 am    Post subject: Reply with quote

that and the fact that the input file has the same dsn as the output.

actually the above statement is not true. there are two different files.

but what bothers me,
the reference name for SORTOUT does not exist.

does not sort look for SORTOUT as the reference name of the file for the output of sort if there is not one mentioned in an outfile statement.

Suggest the TS change the reference name of the dd statement for
TECH301.SORTOU
from SORTOU to SORTOUT
_________________
Dick Brenholtz
American living in Varel, Germany


Last edited by dbzTHEdinosauer on Fri May 13, 2011 12:38 pm; edited 2 times in total
Back to top
View user's profile Send private message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Fri May 13, 2011 12:17 pm    Post subject: Reply with quote

kolusu wrote:
shash_modi,


I am not sure as to why you posted this question in Interview Q&A forum. I see that you are using DISP=OLD on your output JCL. How about deleting it and allocating it before you run the job and make sure it is empty.

Kolusu


Hi Kolusu,
Thanks for the response.
Sorry for posting in the wrong section. What's wrong in using the DISP=OLD? I can used it, right. The point which is disturbing me is that why the SORT is not giving me the desired result? Is there is something to be related to the msg "Alternate Parm Used".
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri May 13, 2011 12:39 pm    Post subject: Reply with quote

why don't your change this:

//SORTOU DD DSN=TECH301.SORTOU,DISP=OLD

to this:

//SORTOUT DD DSN=TECH301.SORTOU,DISP=OLD
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Fri May 13, 2011 12:43 pm    Post subject: Reply with quote

dbzTHEdinosauer wrote:
why don't your change this:

//SORTOU DD DSN=TECH301.SORTOU,DISP=OLD

to this:

//SORTOUT DD DSN=TECH301.SORTOU,DISP=OLD


I did, but still it is not giving me the desired result.
Back to top
View user's profile Send private message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Fri May 13, 2011 1:01 pm    Post subject: Reply with quote

I am getting the following output in the spool (sysout)
Code:

SYNCSORT FOR Z/OS  1.3.2.1R    U.S. PATENTS: 4210961, 5117495     2007 SYNCSO
                                                     
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 29A41, MODEL 2097 716             LICEN
PARMTBLE : BMSG,CORE=MAX                                                       
SYSIN :                                                                       
    SORT FIELDS=(1,4,CH,A)                                                     
WER161B  ALTERNATE PARM USED                                                   
WER276B  SYSDIAG= 363208, 13786101, 13786101, 18709200                         
WER164B  23,420K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,           
WER164B     0 BYTES RESERVE REQUESTED, 23,324K BYTES USED                     
WER146B  20K BYTES OF EMERGENCY SPACE ALLOCATED                               
WER108I  SORTIN   : RECFM=VB   ; LRECL=   255; BLKSIZE=  3120                 
WER110I  SORTOUT  : RECFM=VB   ; LRECL=   255; BLKSIZE=  3120                 
WER168I  CONTROL FIELD WITHIN RDW                                             
  WER410B  22,392K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,     
WER410B     0 BYTES RESERVE REQUESTED, 22,392K BYTES USED                     
WER036B  G=4314,SEGLEN=5400                                                   
WER177I  TURNAROUND SORT PERFORMED                                             
WER045C  END SORT PHASE                                                       
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 
WER416B  SORTIN   : EXCP'S=1,UNIT=3390,DEV=40DC,CHP=(C0C7D5D6DADBDEE1,1),VOL=PR
WER416B  SORTOUT  : EXCP'S=1,UNIT=3390,DEV=5305,CHP=(87A7ADB7C1D7F4FF,1),VOL=PR
WER416B  TOTAL OF 2 EXCP'S ISSUED FOR SORTING                                 
WER246I  FILESIZE 165 BYTES                                                   
WER054I  RCD IN          6, OUT          6                                     
WER072I  EQUALS, BALANCE IN EFFECT                                             
WER169I  RELEASE 1.3 BATCH 0485 TPF LEVEL 2.1                                 
WER052I  END SYNCSORT - ,STEP010,,DIAG=8400,4283,A8BC,6C75,CC43,688B,26
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri May 13, 2011 1:09 pm    Post subject: Reply with quote

shash_modi,

Even though you are using syncsort I am gonna answer it.


You need to understand the concept of Variable Block (VB) Files and how it differs from Fixed Block (FB) files.

Since your input is VB your actual data starts at pos 5 ( first 4 bytes is the RDW) and you are sorting on RDW which is the reason for your wrong results. Change your sort fields to 5,4,ch,a and see how the right results show up
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri May 13, 2011 1:58 pm    Post subject: Reply with quote

It even tells you that fact:

Code:
WER168I  CONTROL FIELD WITHIN RDW
Back to top
View user's profile Send private message
shash_modi
Beginner


Joined: 22 Apr 2008
Posts: 26
Topics: 9
Location: Mumbai

PostPosted: Fri May 13, 2011 2:28 pm    Post subject: Reply with quote

kolusu wrote:
shash_modi,

Even though you are using syncsort I am gonna answer it.


You need to understand the concept of Variable Block (VB) Files and how it differs from Fixed Block (FB) files.

Since your input is VB your actual data starts at pos 5 ( first 4 bytes is the RDW) and you are sorting on RDW which is the reason for your wrong results. Change your sort fields to 5,4,ch,a and see how the right results show up


It is working fine... Superb.... Thanks very much Kolusu....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group