BBC.SHARED.SCRI.GET-DATE

Summary

Details

Object type
SCRI
Object Subtype
-
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/DATA
Active
true
Title
Provides different dates
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-02-28 14:47:12
Last Modified
WRITER/B4A am: 2024-01-09 09:57:42 18 x
Last Used
-

Custom Attributes

No custom attributes defined.

Process

:set &this_month# = sys_date_physical( 'MM' )
:set &this_year# = sys_date_physical( 'YYYY' )
:set &tomorrow# = add_days( "YYYY-MM-DD:&today#", 1 )
:set &week1# = add_period( "YYYY-MM-DD:&today#", "WW;1", 'YYYY-MM-DD' )
:set &week2# = add_period( "YYYY-MM-DD:&today#", "WW;2", 'YYYY-MM-DD' )
:set &week3# = add_period( "YYYY-MM-DD:&today#", "WW;3", 'YYYY-MM-DD' )
:set &month1# = add_period( "YYYY-MM-DD:&today#", "MM;1", 'YYYY-MM-DD' )
:set &quarter1# = add_period( "YYYY-MM-DD:&today#", "Q;1", 'YYYY-MM-DD' )

:set &hnd# = create_process( NEW )
:set &ret# = put_process_line( &hnd#, "Key;Value", ";" )
:set &ret# = put_process_line( &hnd#, "TODAY;&today#", ";" )
:set &ret# = put_process_line( &hnd#, "THIS-YEAR;&this_year#", ";" )
:set &ret# = put_process_line( &hnd#, "THIS-MONTH;&this_month#", ";" )
:set &ret# = put_process_line( &hnd#, "TOMORROW;&tomorrow#", ";" )
:set &ret# = put_process_line( &hnd#, "1-WEEK;&week1#", ";" )
:set &ret# = put_process_line( &hnd#, "2-WEEKS;&week2#", ";" )
:set &ret# = put_process_line( &hnd#, "3-WEEKS;&week2#", ";" )
:set &ret# = put_process_line( &hnd#, "1-MONTH;&month1#", ";" )
:set &ret# = put_process_line( &hnd#, "1-QUARTER;&quarter1#", ";" )

:set &BBCS_DATES_O# = save_process( &hnd# )

:close_process &hnd#


:publish &BBCS_DATES_O#, , TOP

Runtime

ERT Method
DYNAMIC_AVERAGE
Current ERT
00 : 01 : 01 No. of past runs
0 +ERT Correction %
0

Sync

No sync definitions.

Variables

No variables defined.

Prompt Sets

No promptsets defined.

Automatic Deactivation

Deactivate on Finish
ALWAYS
Deactivate After
0

Runtime Parameters

AE Priority
0
Timezone
-
Generate at runtime
true
Max. Parallel Tasks
0

Usage

Parent Type Package Folder
BBC.SHARED.VARA@EXEC.GET-DATE VARA BBC.SHARED PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/DATA

Variable Publications

Found 1 potentially dangerous variable publications (TOP)

Zeilennummer Scriptzeile
28 :publish &BBCS_DATES_O#, , TOP