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

SyncSort Report Line Spacing


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Wed Jan 28, 2009 6:17 am
Reply with quote

Hi!

I am working on a SyncSort report and am having a problem getting my detail lines to double space. Here's the code:

Code:

SORT FIELDS=COPY                                               
OUTFIL FILES=OUT,                                               
      HEADER2=(001:&DATE,                                       
               052:'COMMERCIAL DRIVER LICENSE SYSTEM',         
               121:'PAGE',                                     
               126:&PAGE,/,                                     
               001:'EZCDL091',                                 
               050:'FINAL SUSPENDED TRANSACTION LISTING',//,   
               014:'PRIMARY KEY',                               
               039:'ALTERNATE KEY',                             
               064:'MSG TYPE',                                 
               075:'STATUS FLAG',                               
               089:'SOR1 FLAG',                                 
               101:'SOR2 FLAG',                                 
               113:'ERR CODE')                                 
OUTREC FIELDS=(012:01,16,                          PRIMARY KEY 
               031:21,30,                          ALTERNATE KEY
               067:19,02,                          MESSAGE TYPE
               080:51,01,                          STATUS FLAG 
               093:52,01,                          SOR1 FLAG   
               105:53,01,                          SOR2 FLAG   
               116:54,01,                          ERROR CODE   
               117:16C' ',/) 


If I leave off the last ,/ after position 117, it runs perfectly, but my detail lines are single spaced.

My error message is:

Code:

                093:52,01,                          SOR1 FLAG     
                105:53,01,                          SOR2 FLAG     
                116:54,01,                          ERROR CODE   
                117:16C' ',/)                                     
                           *                                     
WER268A  OUTREC STATEMENT  : SYNTAX ERROR                         
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                     
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                     



The asterisk lines up under the back slash.

The manual seems to show this as being able to work, but no soap. Any suggestions?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 28, 2009 7:58 am
Reply with quote

Hello,

As an experiment, try changing this:
Code:
                117:16C' ',/)
to this:
Code:
                117:16C' ',/,
                2:4C' ')


Untested, but would be a cheap test. . .
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Jan 29, 2009 7:46 am
Reply with quote

Try the following untested modified code and let me know if you get he desired output:
Code:

SORT FIELDS=COPY                                               
OUTFIL FILES=OUT,                                               
      HEADER2=(001:&DATE,                                       
               052:'COMMERCIAL DRIVER LICENSE SYSTEM',         
               121:'PAGE',                                     
               126:&PAGE,/,                                     
               001:'EZCDL091',                                 
               050:'FINAL SUSPENDED TRANSACTION LISTING',//,   
               014:'PRIMARY KEY',                               
               039:'ALTERNATE KEY',                             
               064:'MSG TYPE',                                 
               075:'STATUS FLAG',                               
               089:'SOR1 FLAG',                                 
               101:'SOR2 FLAG',                                 
               113:'ERR CODE'),                                 
        OUTREC=(012:01,16,                          PRIMARY KEY 
               031:21,30,                          ALTERNATE KEY
               067:19,02,                          MESSAGE TYPE
               080:51,01,                          STATUS FLAG 
               093:52,01,                          SOR1 FLAG   
               105:53,01,                          SOR2 FLAG   
               116:54,01,                          ERROR CODE   
               117:16C' ',/) 

Note the comma added at the end of the HEADER2 statement and FIELDS has been removed from the OUTREC statement.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Wed Feb 04, 2009 1:55 am
Reply with quote

Sorry it took a while to get back - they put me on an emergency fix.

I tried Dick's solution and got the same error.

Alissa's solution works great!

Now Alissa - why doesn't SyncSort document these cool functions and make them available to developers? The Programmer's Guide (version 1.2 for ZOS) doesn't even begin to approach these things.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Feb 04, 2009 1:59 am
Reply with quote

Quote:
Now Alissa - why doesn't SyncSort document these cool functions and make them available to developers?
Its already documented and made available in the manual. It's the right syntax that saved you not the 'cool function'.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 04, 2009 2:12 am
Reply with quote

Hello,

Quote:
I tried Dick's solution and got the same error.
Yup, mine was just a swag with no connection in sight that night. . .

Quote:
The Programmer's Guide (version 1.2 for ZOS) doesn't even begin to approach these things.
There is some additional 1.2 material that i'm sure you can get from Syncsort support or thru Alissa. As i recall, there is at least an "addendum" - Addendum. BUILD, IFTHEN, IFOUTLEN, and OVERLAY Parameters as well as an exploiting JOIN publication.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Wed Feb 04, 2009 2:50 am
Reply with quote

OUTFIL with OUTREC, HEADERs and TRAILERs has been documented in the SyncSort MVS (and now the SyncSort for z/OS) Programmer's Guide since 1984, when SyncSort introduced the feature.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Wed Feb 04, 2009 7:05 am
Reply with quote

Yeah, it may be in the manual, but not sufficiently explained for anyone to make heads or tails of it.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Feb 04, 2009 8:48 am
Reply with quote

socker_dad wrote:
why doesn't SyncSort document these cool functions
socker_dad wrote:
Yeah, it may be in the manual, but not sufficiently explained
I m sorry, I(most probably others here as well) dont seem to understand your problem. What you are blaming is a really handy user guide for users all over the world. Personally I never felt any topic not 'sufficiently explained' in the manual.

Your first statement has proved that you have nt taken the effort to go through the manual to see if the explanation is there or not.

If you find it difficult to understand the explanation for any of the keywords mentioned above, you can always ask it , I m sure Alissa will be happy to explain it further.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Wed Feb 04, 2009 8:23 pm
Reply with quote

socker_dad wrote:
Yeah, it may be in the manual, but not sufficiently explained for anyone to make heads or tails of it.

If you are unclear about a particular feature, or question the capability of SyncSort to perform a particular function, all you have to do is ask. Perhaps you would benefit from reviewing SyncSort's Sortwriter Data Utility Guides. These have been available to licensed customers since 1989. If you do not have these available to you, but would like to acquire them, please contact me offline and I would be happy to assist you further.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts rewrite same SAY line CLIST & REXX 8
Search our Forums:

Back to Top