source code on paragraph

View: New views
12 Messages — Rating Filter:   Alert me  

source code on paragraph

by TomN :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
Is it possible to generate source for a paragraph?  If so, how would I be able to detect that?
The reason I ask, I was working in  a paragraph  and notice that I have variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.

Thanks,
Tom


Tom Norstuen
Database Manager
Crystal Cabinet Works, Inc.
1100 Crystal Drive
Princeton, MN  55371
Ph: 763-389-4187 ext 273



_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by Mecki Foerthmann :: Rate this Message:

| View Threaded | Show Only this Message

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:

> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.
>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by TomN :: Rate this Message:

| View Threaded | Show Only this Message

CONFIG.REV below is not defined.

SOPP8011.2      Determine how to increment  N   SODET                        

                                                                           
     LOCAL DIFFERENCE, FOUND, LINE.NO, LP.CNT, LP1, LTH, ORDER.NO, USR.REC                                                        
     LOCAL MULT, FG_AMT, FG_TOT, STUFF, KEYI, ITEMC.REC, X, XX, YY, ZZ, AA                                                        
     LOCAL LABEL.DIFF, TRANDATE                                                                                                  
     LOCAL ERR.REC, ERR.ID, CTL.REC                                                                                
     LOCAL ORD.SRC, BAY.NO, WHS.CODE                                                                                
     LOCAL CBHU.REC, VVV, KIKI                                                                                                    
     TRANDATE = @DATE                                                                                                            
     LABEL.DIFF=0                                                                                                                
     XX=0                                                                                                                        
     YY=0                                                                                                                        
     ZZ=0                                                                                                                        
     AA=0                                                                                                                        
     X=0                                                                                                                          
     FOUND=0                                                                                                                      
     LP.CNT=0                                                                                                                    
     LP1=0                                                                                                                        
     ORDER.NO = FIELD(@WORK<1>,'.',1)                                                                                            
     LINE.NO  = FIELD(@WORK<1>,'.',2)                                                                                            
     KIKI = @WORK<1>                                                                                                              
     MULT=0                                                                                                                      
     FG_AMT=0                                                                                                                    
     FG_TOT=0                                                                                                                    
     STUFF=''                                                                                                                    
     KEYI=''                                                                                                                      
     ITEMC.REC=''                                                                                                                
     @WORK<2> = ''                                                                                                                
     ORD.SRC=''                                                                                                                  
     BAY.NO=''                                                                                                                    
     WHS.CODE=''                                                                                                                  
     ERR.REC=''                                                                                                                  
     ERR.ID=''                                                                                                                    
     CTL.REC=''                                                                                                                  
     *                                                                                                                            
     * ZERO FILL LINE.NO - ENSURES LINE.NO = '001' INSTEAD OF LINE.NO = '1'                                                      
     *                                                                                                                            
     LTH = LEN(LINE.NO)                                                                                                          
     LINE.NO = STR('0',3-LTH):LINE.NO                                                                                            
     *                                                                                                                            
     * READ @RECORD AND USR.REC                                                                                                  
     *                                                                                                                            
     @KEY = ORDER.NO:'*':LINE.NO                                                                                                  
     READ @RECORD FROM "SODET", @KEY                                                                                              
     IF @RTN.FLAG = 1 THEN                                                                                                        
       DISP 3, '"':@KEY:'" is not a valid Line Item Number for Order "':ORDER.NO:'"'                                              
       @REFRESH = 1                                                                                                              
       @WORK<1> = ""                                                                                                              
       EXIT 1                                                                                                                    
     END                                                                                                                          
     IF @RECORD<11> = "C" THEN                                                                                                    
       DISP 3, '"':@KEY:'" is CANCELLED !! Do Not Ship. Alert shipping manager. "'                                                
       @WORK<1> = ""                                                                                                              
       @REFRESH = 1                                                                                                              
       @WORK<13> = ''                                                                                                            
       EXIT 1                                                                                                                    
     END                                                                                                                          
     READ USR.REC FROM "SODET.USR", @KEY                                                                                          
     IF @RTN.FLAG = 1 THEN                                                                                                        
       USR.REC = ''                     ;* SET TO NULL IF NOT FOUND                                                              
       @RTN.FLAG = ''                                                                                                            
     END                                                                                                                          
     *                                                                                                                            
     * POPULATE @VALUE WITH CFSCRIPT SENDING CONFIG.REV FROM SODET                                                                
     * ALL OF THE CFSCRIPTS FOR THIS LINE ITEM ARE RETURNED TO @VALUE<1>                                                          
     *                                                                                                                            
     @PARAM = CONFIG.REV : "*TXT"                                                                                                            
     CRT '@PARAM = ':@PARAM                                                                                                      
     CRT 'CONFIG.REV = ':CONFIG.REV                                                                                              
     INPUT ZZ                                                                                                                    
     EXEC "B:EPCS8507.1,@PARAM"                                                                                                  

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Mecki Foerthmann
Sent: Monday, December 19, 2011 11:39 AM
To: sbsolutions@...
Subject: Re: [SBS] source code on paragraph

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:

> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.
>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by Ronald R. Brown :: Rate this Message:

| View Threaded | Show Only this Message

Is it possible that CONFIG.REV is setup as an Equate Expression?  (To check
go to SB+ Tools -> Other Tools/Utilities -> House Keeping -> Equate
Expressions.)

-------------------------------------------------------
Ronald R. Brown
Chief Financial Officer
Peninsula Truck Lines, Inc.

Voice:       253-929-2025
Toll-free:   800-949-9909 x2025
Nextel:      206-510-3957
Fax:         253-929-2041
Email:       rrbrown@...

Visit our website at www.peninsulatruck.com

-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Tom Norstuen
Sent: Monday, December 19, 2011 9:47 AM
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

CONFIG.REV below is not defined.

SOPP8011.2      Determine how to increment  N   SODET


                                                                           
     LOCAL DIFFERENCE, FOUND, LINE.NO, LP.CNT, LP1, LTH, ORDER.NO, USR.REC

     LOCAL MULT, FG_AMT, FG_TOT, STUFF, KEYI, ITEMC.REC, X, XX, YY, ZZ, AA

     LOCAL LABEL.DIFF, TRANDATE

     LOCAL ERR.REC, ERR.ID, CTL.REC

     LOCAL ORD.SRC, BAY.NO, WHS.CODE

     LOCAL CBHU.REC, VVV, KIKI

     TRANDATE = @DATE

     LABEL.DIFF=0

     XX=0

     YY=0

     ZZ=0

     AA=0

     X=0

     FOUND=0

     LP.CNT=0

     LP1=0

     ORDER.NO = FIELD(@WORK<1>,'.',1)

     LINE.NO  = FIELD(@WORK<1>,'.',2)

     KIKI = @WORK<1>

     MULT=0

     FG_AMT=0

     FG_TOT=0

     STUFF=''

     KEYI=''

     ITEMC.REC=''

     @WORK<2> = ''

     ORD.SRC=''

     BAY.NO=''

     WHS.CODE=''

     ERR.REC=''

     ERR.ID=''

     CTL.REC=''

     *

     * ZERO FILL LINE.NO - ENSURES LINE.NO = '001' INSTEAD OF LINE.NO = '1'

     *

     LTH = LEN(LINE.NO)

     LINE.NO = STR('0',3-LTH):LINE.NO

     *

     * READ @RECORD AND USR.REC

     *

     @KEY = ORDER.NO:'*':LINE.NO

     READ @RECORD FROM "SODET", @KEY

     IF @RTN.FLAG = 1 THEN

       DISP 3, '"':@KEY:'" is not a valid Line Item Number for Order
"':ORDER.NO:'"'                                              
       @REFRESH = 1

       @WORK<1> = ""

       EXIT 1

     END

     IF @RECORD<11> = "C" THEN

       DISP 3, '"':@KEY:'" is CANCELLED !! Do Not Ship. Alert shipping
manager. "'                                                
       @WORK<1> = ""

       @REFRESH = 1

       @WORK<13> = ''

       EXIT 1

     END

     READ USR.REC FROM "SODET.USR", @KEY

     IF @RTN.FLAG = 1 THEN

       USR.REC = ''                     ;* SET TO NULL IF NOT FOUND

       @RTN.FLAG = ''

     END

     *

     * POPULATE @VALUE WITH CFSCRIPT SENDING CONFIG.REV FROM SODET

     * ALL OF THE CFSCRIPTS FOR THIS LINE ITEM ARE RETURNED TO @VALUE<1>

     *

     @PARAM = CONFIG.REV : "*TXT"

     CRT '@PARAM = ':@PARAM

     CRT 'CONFIG.REV = ':CONFIG.REV

     INPUT ZZ

     EXEC "B:EPCS8507.1,@PARAM"


-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Mecki
Foerthmann
Sent: Monday, December 19, 2011 11:39 AM
To: sbsolutions@...
Subject: Re: [SBS] source code on paragraph

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:
> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be
able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have
variables that I am using that are not declared.  This should generate an
error, which it is not.  I put in CRT statements and the values are
populated and cannot see from where.  The screen calls this paragraph
directly and there is no other execution before this variable is used.

>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions




_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by Colin Jennings-3 :: Rate this Message:

| View Threaded | Show Only this Message

...or possibly it's a field definition.  Does the paragraph quote a "Dict
File Name" at the top?

Col.

-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Ronald R.
Brown
Sent: 19 December 2011 17:56
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

Is it possible that CONFIG.REV is setup as an Equate Expression?  (To check
go to SB+ Tools -> Other Tools/Utilities -> House Keeping -> Equate
Expressions.)



_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by Manu Fernandes :: Rate this Message:

| View Threaded | Show Only this Message

Under SB+ :

Tools Menu ( /TM)
Generate Source Code

The BASIC source is stored under xxPROGS files.

Manu

> -----Message d'origine-----
> De : sbsolutions-bounces@... [mailto:sbsolutions-
> bounces@...] De la part de Tom Norstuen
> Envoyé : lundi 19 décembre 2011 18:30
> À : SB Solutions
> Objet : [SBS] source code on paragraph
>
> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be able to
> detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have variables
> that I am using that are not declared.  This should generate an error, which it is
> not.  I put in CRT statements and the values are populated and cannot see from
> where.  The screen calls this paragraph directly and there is no other execution
> before this variable is used.
>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions

_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by TomN :: Rate this Message:

| View Threaded | Show Only this Message

Ronald,
It is not in there, thanks for the reminder of that process.
Tom


-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Ronald R. Brown
Sent: Monday, December 19, 2011 11:56 AM
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

Is it possible that CONFIG.REV is setup as an Equate Expression?  (To check go to SB+ Tools -> Other Tools/Utilities -> House Keeping -> Equate
Expressions.)

-------------------------------------------------------
Ronald R. Brown
Chief Financial Officer
Peninsula Truck Lines, Inc.

Voice:       253-929-2025
Toll-free:   800-949-9909 x2025
Nextel:      206-510-3957
Fax:         253-929-2041
Email:       rrbrown@...

Visit our website at www.peninsulatruck.com

-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Tom Norstuen
Sent: Monday, December 19, 2011 9:47 AM
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

CONFIG.REV below is not defined.

SOPP8011.2      Determine how to increment  N   SODET


                                                                           
     LOCAL DIFFERENCE, FOUND, LINE.NO, LP.CNT, LP1, LTH, ORDER.NO, USR.REC

     LOCAL MULT, FG_AMT, FG_TOT, STUFF, KEYI, ITEMC.REC, X, XX, YY, ZZ, AA

     LOCAL LABEL.DIFF, TRANDATE

     LOCAL ERR.REC, ERR.ID, CTL.REC

     LOCAL ORD.SRC, BAY.NO, WHS.CODE

     LOCAL CBHU.REC, VVV, KIKI

     TRANDATE = @DATE

     LABEL.DIFF=0

     XX=0

     YY=0

     ZZ=0

     AA=0

     X=0

     FOUND=0

     LP.CNT=0

     LP1=0

     ORDER.NO = FIELD(@WORK<1>,'.',1)

     LINE.NO  = FIELD(@WORK<1>,'.',2)

     KIKI = @WORK<1>

     MULT=0

     FG_AMT=0

     FG_TOT=0

     STUFF=''

     KEYI=''

     ITEMC.REC=''

     @WORK<2> = ''

     ORD.SRC=''

     BAY.NO=''

     WHS.CODE=''

     ERR.REC=''

     ERR.ID=''

     CTL.REC=''

     *

     * ZERO FILL LINE.NO - ENSURES LINE.NO = '001' INSTEAD OF LINE.NO = '1'

     *

     LTH = LEN(LINE.NO)

     LINE.NO = STR('0',3-LTH):LINE.NO

     *

     * READ @RECORD AND USR.REC

     *

     @KEY = ORDER.NO:'*':LINE.NO

     READ @RECORD FROM "SODET", @KEY

     IF @RTN.FLAG = 1 THEN

       DISP 3, '"':@KEY:'" is not a valid Line Item Number for Order
"':ORDER.NO:'"'                                              
       @REFRESH = 1

       @WORK<1> = ""

       EXIT 1

     END

     IF @RECORD<11> = "C" THEN

       DISP 3, '"':@KEY:'" is CANCELLED !! Do Not Ship. Alert shipping
manager. "'                                                
       @WORK<1> = ""

       @REFRESH = 1

       @WORK<13> = ''

       EXIT 1

     END

     READ USR.REC FROM "SODET.USR", @KEY

     IF @RTN.FLAG = 1 THEN

       USR.REC = ''                     ;* SET TO NULL IF NOT FOUND

       @RTN.FLAG = ''

     END

     *

     * POPULATE @VALUE WITH CFSCRIPT SENDING CONFIG.REV FROM SODET

     * ALL OF THE CFSCRIPTS FOR THIS LINE ITEM ARE RETURNED TO @VALUE<1>

     *

     @PARAM = CONFIG.REV : "*TXT"

     CRT '@PARAM = ':@PARAM

     CRT 'CONFIG.REV = ':CONFIG.REV

     INPUT ZZ

     EXEC "B:EPCS8507.1,@PARAM"


-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Mecki Foerthmann
Sent: Monday, December 19, 2011 11:39 AM
To: sbsolutions@...
Subject: Re: [SBS] source code on paragraph

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:
> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I
> be
able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I
> have
variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.

>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions




_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by Dave Davis-3 :: Rate this Message:

| View Threaded | Show Only this Message

CONFIG.REV could be a dictionary item in SODET.

Since you have more than 20 local variables declared, you need to generate basic source for this paragraph, if that hasn't already been done.

If you want to know what CONFIG.REV really evaluates as, go into the paragraph definition and type in:

/EEGC

At the prompt, type in CONFIG.REV, and you will see what this evaluates to in Basic.

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Tom Norstuen
Sent: Monday, December 19, 2011 12:47 PM
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

CONFIG.REV below is not defined.

SOPP8011.2      Determine how to increment  N   SODET


     LOCAL DIFFERENCE, FOUND, LINE.NO, LP.CNT, LP1, LTH, ORDER.NO, USR.REC
     LOCAL MULT, FG_AMT, FG_TOT, STUFF, KEYI, ITEMC.REC, X, XX, YY, ZZ, AA
     LOCAL LABEL.DIFF, TRANDATE
     LOCAL ERR.REC, ERR.ID, CTL.REC
     LOCAL ORD.SRC, BAY.NO, WHS.CODE
     LOCAL CBHU.REC, VVV, KIKI
     TRANDATE = @DATE
     LABEL.DIFF=0
     XX=0
     YY=0
     ZZ=0
     AA=0
     X=0
     FOUND=0
     LP.CNT=0
     LP1=0
     ORDER.NO = FIELD(@WORK<1>,'.',1)
     LINE.NO  = FIELD(@WORK<1>,'.',2)
     KIKI = @WORK<1>
     MULT=0
     FG_AMT=0
     FG_TOT=0
     STUFF=''
     KEYI=''
     ITEMC.REC=''
     @WORK<2> = ''
     ORD.SRC=''
     BAY.NO=''
     WHS.CODE=''
     ERR.REC=''
     ERR.ID=''
     CTL.REC=''
     *
     * ZERO FILL LINE.NO - ENSURES LINE.NO = '001' INSTEAD OF LINE.NO = '1'
     *
     LTH = LEN(LINE.NO)
     LINE.NO = STR('0',3-LTH):LINE.NO
     *
     * READ @RECORD AND USR.REC
     *
     @KEY = ORDER.NO:'*':LINE.NO
     READ @RECORD FROM "SODET", @KEY
     IF @RTN.FLAG = 1 THEN
       DISP 3, '"':@KEY:'" is not a valid Line Item Number for Order "':ORDER.NO:'"'
       @REFRESH = 1
       @WORK<1> = ""
       EXIT 1
     END
     IF @RECORD<11> = "C" THEN
       DISP 3, '"':@KEY:'" is CANCELLED !! Do Not Ship. Alert shipping manager. "'
       @WORK<1> = ""
       @REFRESH = 1
       @WORK<13> = ''
       EXIT 1
     END
     READ USR.REC FROM "SODET.USR", @KEY
     IF @RTN.FLAG = 1 THEN
       USR.REC = ''                     ;* SET TO NULL IF NOT FOUND
       @RTN.FLAG = ''
     END
     *
     * POPULATE @VALUE WITH CFSCRIPT SENDING CONFIG.REV FROM SODET
     * ALL OF THE CFSCRIPTS FOR THIS LINE ITEM ARE RETURNED TO @VALUE<1>
     *
     @PARAM = CONFIG.REV : "*TXT"
     CRT '@PARAM = ':@PARAM
     CRT 'CONFIG.REV = ':CONFIG.REV
     INPUT ZZ
     EXEC "B:EPCS8507.1,@PARAM"

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Mecki Foerthmann
Sent: Monday, December 19, 2011 11:39 AM
To: sbsolutions@...
Subject: Re: [SBS] source code on paragraph

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:

> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.
>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
________________________________


Dave Davis
Team Lead, R&D

P: 614-875-4910 x108
F: 614-875-4088
E: DDavis@...
        [http://www.harriscomputer.com/images/signatures/HarrisSchools.gif]

[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]<http://www.harriscomputer.com/>
        6110 Enterprise Parkway
Grove City, OH
43123
www.harris-schoolsolutions.com<http://www.harris-schoolsolutions.com>

This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.

_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: source code on paragraph

by TomN :: Rate this Message:

| View Threaded | Show Only this Message

Yes, Config.rev is in the dictionary of SODET. I was working on converting this and found this issue.

Thanks for the help everyone.

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Dave Davis
Sent: Monday, December 19, 2011 12:08 PM
To: SB Solutions
Subject: Re: [SBS] source code on paragraph

CONFIG.REV could be a dictionary item in SODET.

Since you have more than 20 local variables declared, you need to generate basic source for this paragraph, if that hasn't already been done.

If you want to know what CONFIG.REV really evaluates as, go into the paragraph definition and type in:

/EEGC

At the prompt, type in CONFIG.REV, and you will see what this evaluates to in Basic.

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Tom Norstuen
Sent: Monday, December 19, 2011 12:47 PM
To: 'SB Solutions'
Subject: Re: [SBS] source code on paragraph

CONFIG.REV below is not defined.

SOPP8011.2      Determine how to increment  N   SODET


     LOCAL DIFFERENCE, FOUND, LINE.NO, LP.CNT, LP1, LTH, ORDER.NO, USR.REC
     LOCAL MULT, FG_AMT, FG_TOT, STUFF, KEYI, ITEMC.REC, X, XX, YY, ZZ, AA
     LOCAL LABEL.DIFF, TRANDATE
     LOCAL ERR.REC, ERR.ID, CTL.REC
     LOCAL ORD.SRC, BAY.NO, WHS.CODE
     LOCAL CBHU.REC, VVV, KIKI
     TRANDATE = @DATE
     LABEL.DIFF=0
     XX=0
     YY=0
     ZZ=0
     AA=0
     X=0
     FOUND=0
     LP.CNT=0
     LP1=0
     ORDER.NO = FIELD(@WORK<1>,'.',1)
     LINE.NO  = FIELD(@WORK<1>,'.',2)
     KIKI = @WORK<1>
     MULT=0
     FG_AMT=0
     FG_TOT=0
     STUFF=''
     KEYI=''
     ITEMC.REC=''
     @WORK<2> = ''
     ORD.SRC=''
     BAY.NO=''
     WHS.CODE=''
     ERR.REC=''
     ERR.ID=''
     CTL.REC=''
     *
     * ZERO FILL LINE.NO - ENSURES LINE.NO = '001' INSTEAD OF LINE.NO = '1'
     *
     LTH = LEN(LINE.NO)
     LINE.NO = STR('0',3-LTH):LINE.NO
     *
     * READ @RECORD AND USR.REC
     *
     @KEY = ORDER.NO:'*':LINE.NO
     READ @RECORD FROM "SODET", @KEY
     IF @RTN.FLAG = 1 THEN
       DISP 3, '"':@KEY:'" is not a valid Line Item Number for Order "':ORDER.NO:'"'
       @REFRESH = 1
       @WORK<1> = ""
       EXIT 1
     END
     IF @RECORD<11> = "C" THEN
       DISP 3, '"':@KEY:'" is CANCELLED !! Do Not Ship. Alert shipping manager. "'
       @WORK<1> = ""
       @REFRESH = 1
       @WORK<13> = ''
       EXIT 1
     END
     READ USR.REC FROM "SODET.USR", @KEY
     IF @RTN.FLAG = 1 THEN
       USR.REC = ''                     ;* SET TO NULL IF NOT FOUND
       @RTN.FLAG = ''
     END
     *
     * POPULATE @VALUE WITH CFSCRIPT SENDING CONFIG.REV FROM SODET
     * ALL OF THE CFSCRIPTS FOR THIS LINE ITEM ARE RETURNED TO @VALUE<1>
     *
     @PARAM = CONFIG.REV : "*TXT"
     CRT '@PARAM = ':@PARAM
     CRT 'CONFIG.REV = ':CONFIG.REV
     INPUT ZZ
     EXEC "B:EPCS8507.1,@PARAM"

-----Original Message-----
From: sbsolutions-bounces@... [mailto:sbsolutions-bounces@...] On Behalf Of Mecki Foerthmann
Sent: Monday, December 19, 2011 11:39 AM
To: sbsolutions@...
Subject: Re: [SBS] source code on paragraph

A paragraph is already source code and gets interpreted when it runs.
Can you give an example of the variable names in question?

On 19/12/2011 17:30, Tom Norstuen wrote:

> Hi,
> Is it possible to generate source for a paragraph?  If so, how would I be able to detect that?
> The reason I ask, I was working in  a paragraph  and notice that I have variables that I am using that are not declared.  This should generate an error, which it is not.  I put in CRT statements and the values are populated and cannot see from where.  The screen calls this paragraph directly and there is no other execution before this variable is used.
>
> Thanks,
> Tom
>
>
> Tom Norstuen
> Database Manager
> Crystal Cabinet Works, Inc.
> 1100 Crystal Drive
> Princeton, MN  55371
> Ph: 763-389-4187 ext 273
>
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
________________________________


Dave Davis
Team Lead, R&D

P: 614-875-4910 x108
F: 614-875-4088
E: DDavis@...
        [http://www.harriscomputer.com/images/signatures/HarrisSchools.gif]

[http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]<http://www.harriscomputer.com/>
        6110 Enterprise Parkway
Grove City, OH
43123
www.harris-schoolsolutions.com<http://www.harris-schoolsolutions.com>

This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.

_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions
_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

NEXT/BACK screen

by Jorge Zamora :: Rate this Message:

| View Threaded | Show Only this Message

Hello Folks,
On multiple input screens, what code should I put in function buttons
(process to call) to navigate to NEXT and BACK screens?

SB 5.4 / Universe 10.1

Thank you for any ideas.

Regards
Jorge


_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: NEXT/BACK screen

by Mike Maldon :: Rate this Message:

| View Threaded | Show Only this Message

Jorge

I have done what you require in a much earlier version of SB+ but I
can't see why it would not work for you. Admittedly I have been out of
the game for a while and am not fluent on later versions. However you
can try this for what it's worth.

I used F9 for the Previous Screen and F10 for the Next Screen

So on the 1st screen I only used F10 and assigned the code G:T2
On the 2nd screen I assigned F9 the code G:B1 and F10 was assigned
G:T3
On the 3rd screen I assigned F9 the code G:B-1

All three screens has consecutive numbers such as CF1, CF2 and CF3

Hope that may be of help

Mike Maldon

----- Original Message -----
From: "Jorge Zamora" <jzamora@...>
To: "'SB Solutions'" <sbsolutions@...>
Sent: Friday, January 13, 2012 9:04 PM
Subject: [SBS] NEXT/BACK screen


> Hello Folks,
> On multiple input screens, what code should I put in function
> buttons
> (process to call) to navigate to NEXT and BACK screens?
>
> SB 5.4 / Universe 10.1
>
> Thank you for any ideas.
>
> Regards
> Jorge
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
>


_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions

Re: NEXT/BACK screen

by Jorge Zamora :: Rate this Message:

| View Threaded | Show Only this Message

It worked like a champ...

Thank you.
Jorge

-----Original Message-----
From: sbsolutions-bounces@...
[mailto:sbsolutions-bounces@...] On Behalf Of Mike Maldon
Sent: Friday, January 13, 2012 2:36 AM
To: SB Solutions
Subject: Re: [SBS] NEXT/BACK screen

Jorge

I have done what you require in a much earlier version of SB+ but I can't
see why it would not work for you. Admittedly I have been out of the game
for a while and am not fluent on later versions. However you can try this
for what it's worth.

I used F9 for the Previous Screen and F10 for the Next Screen

So on the 1st screen I only used F10 and assigned the code G:T2 On the 2nd
screen I assigned F9 the code G:B1 and F10 was assigned
G:T3
On the 3rd screen I assigned F9 the code G:B-1

All three screens has consecutive numbers such as CF1, CF2 and CF3

Hope that may be of help

Mike Maldon

----- Original Message -----
From: "Jorge Zamora" <jzamora@...>
To: "'SB Solutions'" <sbsolutions@...>
Sent: Friday, January 13, 2012 9:04 PM
Subject: [SBS] NEXT/BACK screen


> Hello Folks,
> On multiple input screens, what code should I put in function
> buttons
> (process to call) to navigate to NEXT and BACK screens?
>
> SB 5.4 / Universe 10.1
>
> Thank you for any ideas.
>
> Regards
> Jorge
>
>
> _______________________________________________
> SBSolutions mailing list
> SBSolutions@...
> http://listserver.u2ug.org/mailman/listinfo/sbsolutions
>


_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions


__________ Information from ESET Smart Security, version of virus signature
database 6793 (20120113) __________

The message was checked by ESET Smart Security.

http://www.eset.com




_______________________________________________
SBSolutions mailing list
SBSolutions@...
http://listserver.u2ug.org/mailman/listinfo/sbsolutions