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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Why OMIT parameter does not work in this instance
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

Moderator Team Head


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

PostPosted: Thu Jun 07, 2007 6:04 pm    Post subject: Re: Why OMIT parameter does not work in this instance
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    Post subject: Re: Why OMIT parameter does not work in this instance
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 7:53 pm    Post subject:
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    Post subject: Re: Why OMIT parameter does not work in this instance
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    Post subject: Re: Why OMIT parameter does not work in this instance
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 8:26 pm    Post subject:
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    Post subject: Re: Why OMIT parameter does not work in this instance
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    Post subject: Re: Why OMIT parameter does not work in this instance
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 07, 2007 8:49 pm    Post subject:
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    Post subject: Re: Why OMIT parameter does not work in this instance
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    Post subject:
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    Post subject: Re: Why OMIT parameter does not work in this instance
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 Moderator


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

PostPosted: Sat Jun 09, 2007 8:24 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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