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

[Solved]Why OMIT parameter does not work in this instance


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 5:52 pm
Reply with quote

Evening Folks:

I have stumbled on a strange problem. I try to use the OMIT parameter in my job and strangely it does not seem to take effect the conditions mentioned in it.

The job i used is as follows. Also, have attached a screen shot of the record length in the input file. Please advise and suggest.

//S3 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=U142914.T6,DISP=SHR
//SORTOUT DD DSN=U142914.T7,DISP=SHR
//SYSIN DD *
OPTION COPY
OMIT COND=(7,6,CH,EQ,C'IN-CAT')
/*
//*


[/img]

Thanks very much
Vik Rajagopalan
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Jun 07, 2007 6:04 pm
Reply with quote

The input dataset is FB?
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 6:08 pm
Reply with quote

Hello:

No the file is a VBA with 125 as the record length(Should it be important).

Thanks much

Vik Rajagopalan
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Jun 07, 2007 7:19 pm
Reply with quote

vikirum
Your statement
Quote:
I try to use the OMIT parameter in my job and strangely it does not seem to take effect the conditions mentioned in it.


is incomplete, please provide information as to whether job ran successfully and the o/p is empty or not?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 7:53 pm
Reply with quote

I would take a guess that the columns specified are not correct.

As the file is VBA, did you add 4 to the positions that you wish to check, and did you also take into account the 'A' bytes, as in RECFM=VBA
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 8:15 pm
Reply with quote

Expat,

You caught me by my sneakers !! I did not know what exactly should be done for a VBA file.

Please advise what should be done for this.

Thanks much
Vik Rajagopalan
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 8:16 pm
Reply with quote

Kris,

What happens as a result of this command not taking any effect is that the input file is the output file without any changes !

Hope this helps in researching the problem alongside me.

Thanks much for your help.

Vik Rajagopalan
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 8:26 pm
Reply with quote

When you browse/edit the file and work out the columns, you need to add 4 to the column number to cater for the RDW of a VB record.

When you display the dataset, there should be some 1's and 0's in the first column. If not, then you will need to add another 1 to the new column position you got from adding 4 for the RDW.
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 8:28 pm
Reply with quote

Expat,

Lemme give it a shot and see if this works.

Thanks for the piece of info.

Vik Rajagopalan
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Thu Jun 07, 2007 8:37 pm
Reply with quote

Expat,

I get an error message:

The changed JCL parm to incorporate what you said is like this,

OPTION COPY
OMIT COND=(11,6,CH,EQ,C'IN-CAT')

and the error message I get is as follows:

ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=N,TEXIT=N,LISTX=N,EFS=NONE ,EXITC
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=MAX ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMI
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTOUT
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTIN
ICE218A 6 13 BYTE VARIABLE RECORD IS SHORTER THAN 16 BYTE MINIMUM FOR F
ICE751I 1 EF-Q95214 F0-Q84357 E8-Q95214
ICE052I 0 END OF DFSORT
******************************** BOTTOM OF DATA
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 07, 2007 8:49 pm
Reply with quote

Funny you should say that, but having just read that it reminded me of the same problem I had when I done something similar icon_confused.gif

Try
Code:

  OPTION VLSHRT VLSCMP
  SORT FIELDS=COPY
  OMIT COND=(11,6,CH,EQ,C'IN-CAT')
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Fri Jun 08, 2007 10:53 am
Reply with quote

Expat,

It worked. icon_surprised.gif Thanks much. But I wonder what those options were and what does it specifically do?

Thanks again.

Vik Rajagopalan
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Jun 08, 2007 11:27 am
Reply with quote

vikirum

For VLSHRT and VLSCMP check here
http://publibz.boulder.ibm.com/zoslib/pdf/ice1ca20.pdf
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Fri Jun 08, 2007 12:37 pm
Reply with quote

Thanks everyone for helping me find a solution. I will officially call it end of my requirement and the objective is met successfully.

You guys have a good one.

Vik Rajagopalan
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Jun 09, 2007 8:24 pm
Reply with quote

Vik,

You only need VLSCMP, not both VLSCMP and VLSHRT. For an explanation, see the "How can I use INCLUDE/OMIT with "short" fields?" Ask Professor Sort item at:

www.ibm.com/servers/storage/support/software/sort/mvs/professor_sort/


Note that a VBA record looks like this:

Code:

|RDW|cc|data|
  4   1  n


so you have to take into account the RDW and cc when determining the starting position of your field.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top