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
 

 

SyncSort Report Line Spacing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 147
Location: Columbia, MO

PostPosted: Wed Jan 28, 2009 6:17 am    Post subject: SyncSort Report Line Spacing
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

Site Director


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

PostPosted: Wed Jan 28, 2009 7:58 am    Post subject:
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: 500
Location: USA

PostPosted: Thu Jan 29, 2009 7:46 am    Post subject: Re: SyncSort Report Line Spacing
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: 147
Location: Columbia, MO

PostPosted: Wed Feb 04, 2009 1:55 am    Post subject:
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: 2180
Location: @my desk

PostPosted: Wed Feb 04, 2009 1:59 am    Post subject:
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

Site Director


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

PostPosted: Wed Feb 04, 2009 2:12 am    Post subject:
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: 500
Location: USA

PostPosted: Wed Feb 04, 2009 2:50 am    Post subject:
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: 147
Location: Columbia, MO

PostPosted: Wed Feb 04, 2009 7:05 am    Post subject: Reply to: SyncSort Report Line Spacing
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: 2180
Location: @my desk

PostPosted: Wed Feb 04, 2009 8:48 am    Post subject:
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: 500
Location: USA

PostPosted: Wed Feb 04, 2009 8:23 pm    Post subject: Re: Reply to: SyncSort Report Line Spacing
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am


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