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
 

 

Labels on DFSORT control statements

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Labels on DFSORT control statements
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 Moderator


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

PostPosted: Thu Jan 07, 2010 4:30 am    Post subject:
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    Post subject: Reply to: Labels on DFSORT control statements
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    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 PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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