inbasekarmani Warnings : 2 New User Joined: 20 Apr 2007 Posts: 13 Location: chennai
I opened one pds member and then i typed some contents,now when i type SORT in command line.it provides sorted output in ascending order.so i considered ASCENDING is default.
But when i tried the following code,its showing error.
//step exec pgm=sort
//sysprint dd sysout=*
//sysout dd sysout=*
//sortin dd dsn=inputfile...,disp=shr
//sortout dd dsn=outputfile..,disp=shr
//sysin dd *
Note:i voluntarily removed "A" after "CH" in sort control statement.
May i know the reason for this......
Frank Yaeger DFSORT Moderator Joined: 15 Feb 2005 Posts: 7130 Location: San Jose, CA
The syntax for the DFSORT SORT FIELDS operand requires A or D (or E). There is no default. So you can specify:
but you can't omit the A.
All of the DFSORT syntax is documented in "z/OS DFSORT Application Programming Guide" and you must abide by it or you will get errors. You can find all of the DFSORT books at:
Akatsukami Global Moderator Joined: 03 Oct 2009 Posts: 1786 Location: Bloomington, IL
I believe Inba is confusing the SORT primary command of ISPF Edit with DFSORT. Bottom line: they are different products developed by different people (although both for IBM), so there is no reason that they should have identical interfaces.
All times are GMT + 6 Hours