My task is to check whether the datatypes are correct after the ETL load.
I got your point but how to automate the below step through shell scripting.
"One of the validation check, i need to make sure the datatypes of the all columns of a table are also matching against database based on data feed requirement document."
Would it be possible to give an example for this?
For example: I am using the below datatypes.
Thanks.
Last edited by rbatte1; 04-04-2017 at 11:37 AM..
Reason: Added CODE tags for clarity
Dear Champs,
Can anybody help me out to write a shell script , which will check whether the process is running , if running then divide the process into 2 so that next var it can take process parallel .
Let
ps -ef | grep a.sh => shows running
note a.sh will take a process of next... (0 Replies)
Hi,
I have a script which will check the fiel existence, the lines are as below
if !(test -d ./data) then
mkdir data
fi
In the first line error occurs as below
generatelicense.sh: syntax error at line 2: `!' unexpected
Where as this script works fine in linux OS.
How to solve... (2 Replies)
I am trying to write a script to get all the html files under a source directory and and for each html file, run a program with html file as an argument. This program generates an output which I need to save as htmlfilename.txt ( right now i was trying to print it on the command line)
... (11 Replies)
I've got the following data in a file - basically hundred of passes.
Pass Id : PASSID1
Pass Name : 7 day pass 10 Gb
Pass Group : uk
Short Name : pmbbrh2
type : restrict
Validity ... (7 Replies)
Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help?
Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Here is the contents of an input file.
A,1,2,3,4
10,aaa,bbb,ccc,ddd
11,eee,fff,ggg,hhh
12,iii,jjj,lll,mmm
13,nnn,ooo,ppp
I wanted the output to be
A
10 1 aaa
10 2 bbb
10 3 ccc
10 4 ddd
11 1 eee
11 2 fff
11 3 ggg
11 4 hhh .....
and so on How to do it in ksh... (9 Replies)
I have two input files 1)datafile 2)metadata file.
I have a metadata file like:
field1datatypeformat1number2string3dateyy-mm-dd
I have a data file like:
1234abc12-8-16 xyz234512-9-163456acd14-08-12
In the first row there is no correction as everything is inline with the metadata.... (3 Replies)
Hi friends
please help me on below,
i have 5 files like below
file1 is
x 10
y 20
z 15
file2 is
x 100
z 245
file3 is
y 78
z 23
file4 is
x 100 (3 Replies)
Hi ,
I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies
LEARN ABOUT DEBIAN
mpi_type_dup_fn
MPI_TYPE_DUP_FN(3) LAM/MPI MPI_TYPE_DUP_FN(3)NAME
MPI_TYPE_DUP_FN - Built-in MPI function to simple-mindedly copy datatype attributes.
SYNOPSIS
#include <mpi.h>
int MPI_TYPE_DUP_FN(MPI_Datatype dtype, int key,
void *extra, void *attrin, void *attrout,
int *flag)
INPUT PARAMETERS
dtype - communicator (handle)
key - key value (integer)
extra - extra state
attrin - in value for attribute
OUTPUT PARAMETERS
attrout
- out value for attribute
flag - 1 if attribute copied successfully, 0 otherwise (logical)
NOTES
This function blindly byte-copies attributes on datatypes. It is the default atrribute-copying function for datatypes. This function will
always return MPI_SUCCESS , and flag will always be set to 1.
The actual copy is performed by the code
*((void **) attrout) = attrin;
If this simple assignment is not sufficient for your attributes, you will need to reassign the attribute-copying function on relevant key-
vals on datatypes with the MPI_Type_keyval_create function.
NOTES FOR FORTRAN
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK ) have an additional argument ierr at the end of the argument list. ierr
is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked
with the call statement.
All MPI objects (e.g., MPI_Datatype , MPI_Comm ) are of type INTEGER in Fortran.
SEE ALSO
MPI_Type_keyval_create
MORE INFORMATION
For more information, please see the official MPI Forum web site, which contains the text of both the MPI-1 and MPI-2 standards. These
documents contain detailed information about each MPI function (most of which is not duplicated in these man pages).
http://www.mpi-forum.org/
ACKNOWLEDGEMENTS
The LAM Team would like the thank the MPICH Team for the handy program to generate man pages ("doctext" from ftp://ftp.mcs.anl.gov/pub/sow-
ing/sowing.tar.gz ), the initial formatting, and some initial text for most of the MPI-1 man pages.
LOCATION
dupfn.c
LAM /MPI 7.1.4 6/24/2006 MPI_TYPE_DUP_FN(3)