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

Using DFSPARM to insert a value into a sort


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

New User


Joined: 29 Mar 2006
Posts: 5

PostPosted: Thu Aug 03, 2006 7:13 pm
Reply with quote

Hello, I have a programmer that wants to be able to insert the following sort value into a data set, and then use that data set in several different jobs.

The sort value he wants to put in the data set is:

DATE2-1

I thought we could just insert this value into a data set, and use the
DFSPARM DD, I'm not sure if this will work.

As an example, one of his sorts looks like this:

INCLUDE COND=(421,6,CH,EQ,DATE2-1)

Would I still be able to insert the DATE2-1 into the above sort
by using DFSPARM containing just DATE2-1? If so, would I just
put the DFSPARM DD into the sort step, and still have the
INCLUDE COND=(421,6,CH,EQ)

Thanks,
Scott
Back to top
View user's profile Send private message
scottgb

New User


Joined: 29 Mar 2006
Posts: 5

PostPosted: Thu Aug 03, 2006 8:29 pm
Reply with quote

Never mind, I just found the list of allowable DFSPARM parms.

Thanks anyway,
Scott
Back to top
View user's profile Send private message
Alain Benveniste

New User


Joined: 14 Feb 2005
Posts: 88

PostPosted: Fri Aug 04, 2006 12:33 am
Reply with quote

Scoot,

I'm not sure what would be the profit to do it that.
Anyway it's not possible.

Alain
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 Aug 05, 2006 10:51 pm
Reply with quote

Scott,

DFSPARM is for DFSORT control statements and options. It wouldn't make sense to put DATE2-1 into DFSPARM since it's not a control statement or option.

It's not clear exactlywaht you're trying to do.

You can use DATE2-1 directly in an INCLUDE statement.

If you want to use something like DATE2-1 in a data set instead of directly in an INCLUDE statement, you could generate a DFSORT symbol for DATE2-1, e.g.

MYDATE,date

specify

//SYMNAMES DD DSN=dsname,...

and use MYDATE in the INCLUDE statement, e.g.

Code:

   INCLUDE COND=(421,6,CH,EQ,MYDATE)
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top