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

Labels on DFSORT control statements


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

New User


Joined: 15 Nov 2007
Posts: 39
Location: New York

PostPosted: Thu Jan 07, 2010 3:03 am
Reply with quote

Frank,

I see the "Label Field" information on page 85 of the most recent DFSORT Application Programming Guide. I understand the syntax of labels, but I'm having a difficult time understanding their purpose. Do labels serve any programmatic function? Or do they essentially serve as documentation only?

BTW, the new JOINKEYS feature is wonderful.

Thanks so much,

David
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: Thu Jan 07, 2010 4:30 am
Reply with quote

Labels just serve as documentation. I believe the original intent was to make the DFSORT control statements look like Assembler statements, e.g.

Code:

label  operator operands remarks


but I don't see a good reason for them either and they introduce some "gotchas":

Labels are NOT allowed in control statements in DFSPARM or in the parameter lists. And because of labels, the operator cannot start in column 1. People often code the operator in column 1 leading to a syntax error message.

This was all decided about a decade before I joined the sort group by the original developers from Sweden - we're still stuck with it for compatability reasons.

When I designed the new syntax for ICETOOL, I did NOT allow labels and I did allow the operator to start in column 1.

I'm glad you like the JOINKEYS feature. icon_biggrin.gif
Back to top
View user's profile Send private message
David Eisenberg

New User


Joined: 15 Nov 2007
Posts: 39
Location: New York

PostPosted: Thu Jan 07, 2010 8:12 pm
Reply with quote

>This was all decided about a decade before I joined the sort group by the original developers from Sweden<

Ja, dat explains eet. icon_smile.gif

I had also been looking for an ISPF HILITE language that seemed appropriate for DFSORT/ICETOOL control cards. Your explanation of the history explains why that's tricky; the DFSORT and ICETOOL syntaxes were developed independently.

Thanks for the quick response.

David
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top