Professional Documents
Culture Documents
begin
out.* :: in.*;
out.bkp_flag :: $BKP_FLAG;
out.(*, form == "decimal"):1: 0;
out.(*, form == "string"):2: '0';
end;
-------------------------------------------------------------------
SPACE CHECK
df -g .
-------------------------------------------------------------------
-----------------------------------------------------------------
---------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------
-----------------------------------------------------------------------------------
---------------------------
-----------------------------------------------------------------------------------
-----------------
-----------------------------------------------------------------------------------
-----------------------------
. ./ab* .
-----------------------------------------------------------------------------------
-----------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------
m_dump $AI_DML/ss_ns_lr_ss_mi_aux_product_m.dml
$AI_SERIAL/ss_ns_lr_ss_mi_aux_product_m.txt -start 1 -end 5
-----------------------------------------------------------------------------------
------------------------------------------------
-----------------------------------------------------------------------------------
----------------------------------------
-----------------------------------------------------------------------------------
---------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------
m_eval
'string_split_no_empty(string_filter_out("{prd_cde,acct_nbr,cust_nbr}","{}"),",")'
-----------------------------------------------------------------------------------
-------------------------
m_eval 'vector_difference(record_info_item(read_type("int_service_d_e.dml"),item=
"name"),string_split_no_empty(string_filter_out("{prd_cde,acct_nbr,cust_nbr}","{}")
,","))'
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------
m_eval '(date_difference_days((date("DD/MM/YYYY"))"31/12/2000",
(date("DD/MM/YYYY"))"01/01/2000"))' (this will run abinitio function in unix)
-----------------------------------------------------------------------------------
--------------------------------------------------------------------------
SCRAMBLING COMMANDS
cat INV_INT_INV_ORDER_SNAPSHOT_M.TXT.20160831_HDR
INV_INT_INV_ORDER_SNAPSHOT_M.TXT.20160831_DTL.sd
INV_INT_INV_ORDER_SNAPSHOT_M.TXT.20160831_TRL >
INV_INT_INV_ORDER_SNAPSHOT_M.TXT.20160831.TXT
-----------------------------------------------------------------------------------
---------------------------------------------------------
SFTP PROCESS
sftp <source_hostname> (where file already exist)
cd <source_path> (where file already exist)
lcd <destination_path> (l in used for local directory)
put or mput <file_name> (put is for transfer of one file and mput is for transfer
of more than one file)
-----------------------------------------------------------------------------------
------------------------------------------------------------------------
-----------------------------------------------------------------------------------
----------------------------------------------------------------
TO CREATE SCRIPT ( script contains all commands which we have to execute )
#!bin/ksh
if [ $# -ne 1 ]
then echo " correct script call is $0 <mis date of file in yyyy-mm-dd format> "
else
m_wc -decompress $AI_DML/ss_ns_lr_ss_mi_accitrade_m.dml
SS_MI_ACCITRADE_M_M_$1.dat.gz;
fi
exit 0
-----------------------------------------------------------------------------------
------------------------------------------------------------------------
grep is used for pattern serching. (grep -E is used to search in more than one
files)
ll *_M_20160731.dat.gz | grep -E 'INT_CASA_TXN_SNAPSHOT_D|
SS_AUTO_DEBIT_CHKING_ACCT|SS_AUTO_DEBIT_CRD_M'
-----------------------------------------------------------------------------------
------------------------------------------------------
SAVE_FILE CREATION AND TAG_CREATION
air tag create salesstation_mi_int_20161101_v3.tag -file
salesstation_mi_int_20161101_v3.txt
air save salesstation_mi_int_20161101_v3.save -from-tag
salesstation_mi_int_20161101_v3.tag
-----------------------------------------------------------------------------------
------------------------