MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why is the difference between the Ezt report and SYNC SORT?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Sat Sep 10, 2005 4:06 am    Post subject: Why is the difference between the Ezt report and SYNC SORT? Reply with quote

Hi,
When I am generating the report using the Ezt with PRINTER option,The o/p file is looking like this.(133 of FBA).

1 9/09/05 REPORTING oF INFO
-

A/c no CODE Desc Date
0 MA08103397 1 SRPH84R1 09/09/2004


The same heading(With carriage control characters) is repeating when ever a new page is going to start.

When I try to generate the same heading with the SYNC SORT I am getting the report in a diffrent manner.It's like .

9/09/05 REPORTING oF INFO


A/c no CODE Desc Date
+ MA08103397 1 SRPH84R1 09/09/2004

I am using the OUTFIL statment with LINES=(ANSI,55).Is it possible to get the same carriage control characters in sort as same as Ezt?

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Sep 10, 2005 7:16 am    Post subject: Reply with quote

bprasanna,


Show me your sort control cards

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Mon Sep 12, 2005 1:26 am    Post subject: Reply with quote

Hi Kolusu,
Thanks for your reply.Please find the SORT JCL below.

Code:

000028 //PS020    EXEC PGM=SYNCTOOL                                           
000029 //SYSOUT   DD  SYSOUT=*                                                 
000030 //TOOLMSG  DD  SYSOUT=*                                                 
000031 //DFSMSG   DD  SYSOUT=*                                                 
000032 //IN1      DD DSN=XXX.YYY.ZZZ,                   
000033 //            DISP=SHR                                                 
000034 //OUT1     DD DSN=XXX.YYY.ZZZ.REP,                   
000035 //            DISP=(NEW,CATLG,DELETE),                                 
000036 //            UNIT=SCRPK,SPACE=(CYL,(100,100),RLSE),                   
000037 //            DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330)                   
000038 //TOOLIN    DD   *                                                     
000039   SORT FROM(IN1) TO(OUT1) USING(CTL1)                                   
000040 //CTL1CNTL  DD *                                                       
000041   SORT FIELDS=(77,10,CH,A,25,10,CH,A,46,2,CH,A)                         
000042   OUTFIL FNAMES=OUT1,                                                   
000043   HEADER2=(C' ',&DATE,35X,                                             
000044            C'REPORTING OF INFORMATION                      ',31X,       
000045            C'PAGE ',&PAGE,/,                                           
000046            34X,C'AC/NO ',5X,C'CODE',6X,C'DESC',6X,                     
000047            C' DATE    '),                                               
000048        LINES=(ANSI,55),                                                 
000049   OUTREC=(32X,25,10,5X,46,2,4X,60,9,3X,77,10,58X)                       

My I/P file is of 133 and in FBA foramt.
The file is looking like below.



Code:

+----3----+----4----+----5----+----6----+----7----+----8----+-
AAAAAAA001           1            SRPHAAR1         09/14/2005
AAAAAAA002           1            SRPHAAR1         09/14/2005


The o/p is coming as
Code:


 09/12/05                                   REPORTING OF INFORMATION   
                                  AC/NO      CODE      DESC       DATE 
+                               AAAAAAA001      1    SRPHAAR1    09/14/2005
                                AAAAAAA002      1    SRPHAAR1    09/14/2005



I hope the above info is ok to give your valuable suggestion.
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 12, 2005 4:43 am    Post subject: Reply with quote

Bprasanna,

The carriage control character have the following meaning.
Code:

blank =  Advance one line
0     =  Advance 2 lines
-     =  Advance 3 lines
+     =  Do not advance


Easytrieve is skipping 3 lines before actually printing the detail records. you can change the sort to do the same or change easytrieve to not to skip 3 lines.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Mon Sep 12, 2005 8:12 am    Post subject: Reply with quote

Hi Kolusu,
Could you please let me know how can I modfy the SORT card to get the same report as Ezt?


Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 12, 2005 9:48 am    Post subject: Reply with quote

Quote:

Hi Kolusu,
Could you please let me know how can I modfy the SORT card to get the same report as Ezt?


bprasanna,

All you need is to add the contents in bold in the below control cards.

Quote:

SORT FIELDS=(77,10,CH,A,25,10,CH,A,46,2,CH,A)
OUTFIL FNAMES=OUT1,
HEADER2=(C' ',&DATE,35X,
C'REPORTING OF INFORMATION ',31X,
C'PAGE ',&PAGE,/,3/,
34X,C'AC/NO ',5X,C'CODE',6X,C'DESC',6X,
C' DATE '),
LINES=(ANSI,55),
OUTREC=(32X,25,10,5X,46,2,4X,60,9,3X,77,10,58X)


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Mon Sep 12, 2005 12:53 pm    Post subject: Reply with quote

Hi Kolusu,
Thanks for the reply.I am getting the 3 blank line by using 3/.But I am not able to achive the 1,- and 0 at the position '1' of the o/p file.
By hard coding the values in the HEADER2 ,I am able to get the "1" and
"-" .But I am not able to get '0' at the starting of every detail record.The system is automatically producing the '+' at the starting of detail record for each page.Is there any other method instead of using the CHANGE command at the outrec fields ?What I mean is how can I get the '0' insted of "+" for the first detail record on each page automatically?

For getting "1" and "-" I changed the card like below.

Code:

            HEADER2=(C'1 ',&DATE,35X,                                             
000044            C'REPORTING OF INFORMATION                      ',31X,       
000045            C'PAGE ',&PAGE,c'-',3/,                                           
000046            34X,C'AC/NO ',5X,C'CODE',6X,C'DESC',6X,                     
000047            C' DATE    '),   



Thank you
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 13, 2005 1:36 am    Post subject: Reply with quote

bprasanna,

Quote:

By hard coding the values in the HEADER2 ,I am able to get the "1" and "-".


This is impossible.

Quote:

For getting "1" and "-" I changed the card like below.


I think you are actually looking at position 2 on the file. ANSI print control characters cannot be hardcoded in your sort card because they are outside the HEADER/OUTREC boundary. The output dataset will be created as FBA and the ANSI characters will be hidden if you open an FBA dataset in BROWSE mode. So, if you have opened your dataset in browse mode the character '1' your are looking at is actually at Column 2. To see the correct ANSI chars, open in EDIT/VIEW mode.

[quote]
,&PAGE,c'-',3/,
[/code]

3/ means - Skip 3 lines and print 'AC/NO' after that. But the '-' has been coded before 3/ which will actually put it after PAGENO in line 1 and not on line 2.

I am saying all these under the assumption that you have used the control as
Code:

            HEADER2=(C'1 ',&DATE,35X,                                             
000044            C'REPORTING OF INFORMATION                      ',31X,       
000045            C'PAGE ',&PAGE,c'-',3/,                                           
000046            34X,C'AC/NO ',5X,C'CODE',6X,C'DESC',6X,                     
000047            C' DATE    '), 


Kolusu,
Please Let me know if I am missing something.

Thanks,
Phantom
Back to top
View user's profile Send private message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Tue Sep 13, 2005 2:22 am    Post subject: Reply with quote

Hi Kolusu,

Quote:
This is impossible


I am able to get the "1" and "-" in the o.p file.I opened the file in EDIT mode and able to see the special characters(1 and -) in the file.

Regarding the 3 blank lines,I am not able to get then if i use 3/ along with the above hard coded values in the HEADER2 statment.I tested with the below SORT card and I got the o/p as shown below.
Code:

SORT FIELDS=(77,10,CH,A,25,10,CH,A,46,2,CH,A)                     
OUTFIL FNAMES=OUT1,                                               
HEADER2=(C'1',&DATE,35X,                                         
         C'REPORTING OF INFORMATION                      ',31X,   
         C'PAGE ',&PAGE,/,C'-',3/,                               
         34X,C'AC/NO ',5X,C'CODE',6X,C'DESC',6X,                 
         C' DATE    '),                                           
     LINES=(ANSI,55),                                             
OUTREC=(32X,25,10,5X,46,2,4X,60,9,3X,77,10,58X)                   


o/p file display in EDIT mode:

Code:

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
109/13/05                                   REPORTING OF INFORMATION   
-                                                                       
0                                                                       
                                  AC/NO      CODE      DESC       DATE 
+                               AAAAAAA001      1    SRPHAAR1    09/14/2005
                                AAAAAAA002      1    SRPHAAR1    09/14/2005


Here I am getting another 0 but it's ok to me to get the 0 in the third line.My main issue here is How can I get the "0" insted of "+" in the detail record.Is there any chance that will be produced automatically.

Thank you
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 13, 2005 3:45 am    Post subject: Reply with quote

Bprasanna,

I got it now. I missed the LINES=ANSI parameter using which you have overridden the default print control chars. My apologies,

Quote:

Regarding the 3 blank lines,I am not able to get then if i use 3/ along with the above hard coded values in the HEADER2 statment


I checked the Syncsort manual and this is what is says,
Code:

The / subparameter may not be used when LINES=ANSI or
LINES=(ANSI,n) has also been specified on the OUTFIL control statement.


From the above statement I understand that we need to provide the print characters on every line ourselves instead of using / or 3/....

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Tue Sep 13, 2005 1:43 pm    Post subject: Reply with quote

Hi Phantom,
Thank you for your reply.Generally I used to see replies from Kolusu for the syncsort queires.So I haven't checked the name for the latest reply.
Sorry for this.
I saw a table in the SYNCSORT manual giving VALID ANSI control characters,Under which they mentioned CODE and INTERPRETATION. Do you have any idea about it?

From all the above replies I think we may not able to produce the same report as Ezt.

Once agin my thanks to you and Kolusu for the suggestions.

Thanks
Bprasanna
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 14, 2005 12:13 am    Post subject: Reply with quote

Bprasanna,

Using LINES=ANSI, you can control the multi-line header or detail records, but you have no control between the last line of header and detail records. I think Syncsort puts a '+' after it prints the last header line by default. I am not sure how to control it.

Code:

VALID ANSI control characters,Under which they mentioned CODE and INTERPRETATION. Do you have any idea about it?


I think you are asking about the Channels mentioned in the table. I am not sure, but I hope it is the I/O Channel connected to different devices.

Probably someone else have an answer for your questions. I am also having my fingers crossed !!!

Thanks,
Phantom
Back to top
View user's profile Send private message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Wed Sep 14, 2005 1:00 pm    Post subject: Reply with quote

Thank you Phantom for your reply.
Yes I am asking about the channels mentioned in the doc under ANSI cotrol character heading. I thnik we need to wait and see the reply from Kolusu.

Thanks
_________________
----------------
Thanks&Regards
Bprasanna
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Sep 14, 2005 1:20 pm    Post subject: Reply with quote

Quote:

I thnik we need to wait and see the reply from Kolusu.


bprasanna,

I am just tired and cannot think straight today ! Sorry will post a solution later if I can.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group