Sponsored Content
Full Discussion: Help needed for a script
Homework and Emergencies Homework & Coursework Questions Help needed for a script Post 303018916 by patitapaban on Tuesday 19th of June 2018 06:04:36 AM
Old 06-19-2018
Help needed for a script

TAG flow Between SDR and DELTA
  1. SDR is the Source table.
  2. Delta is the target table having one staging table and one Main table.
  3. Tags flows between SDR and Delta through ER gateway.
  4. From SDR (SDR.CUSTOMER_PRODUCT and SDR.CUSTOMER_PRODUCT_RELATIONSHIP) the Tags flows to ER (SERVICE_ER_SCHEMA.CUSTOMER_PRODUCT and SERVICE_ER_SCHEMA.CUSTOMER_PRODUCT_RELATIONSHIP)
  5. From ER the Tags flows to Delta staging table (dellcnt.ISP_CUST_PROD_MFG_STG_TBL) and Then from Staging to main table(s_asset).
Issues: -
  1. Tags may not move in between ER to Delta staging table
    And
  2. Delta staging table to Delta main table.
At that time, we need to know exactly where the Tag is present. So, we can treat the Tags as external parameter for the script to take input and find out where the Tag is present.

Last edited by rbatte1; 06-19-2018 at 08:46 AM.. Reason: Formatted number lists with LIST=1 tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script needed

Hi I am looking for the script which can move 1month old data from a TXT file.actully in this file data is appended on daily basis.pleasehalp me out. Thanks in advance (3 Replies)
Discussion started by: vpandey
3 Replies

2. Shell Programming and Scripting

Script help needed

I have a code given below... ERROR=`grep "Job Status" ${LOG_FILE}` ERROR=${ERROR##*\(} ERROR=${ERROR%%\)*} if then echo "The job completed successfully" EXIT_STATUS=0 else echo "The job failed" EXIT_STATUS=1 fi can anybody tell me what is ERROR=${ERROR##*\(}... (1 Reply)
Discussion started by: Sagarddd
1 Replies

3. UNIX and Linux Applications

script needed

hi i am new to linux world please help me,i have two files in diff location i need to compare both and i need to see difference b/w them ex /media/txt (file1) xxxxxx xxxxxx xxxxx xxxxxx xxxxxx /media/rev/ (file2) rev is a folder which contains some files so i need to compare the files in... (3 Replies)
Discussion started by: revenna
3 Replies

4. Shell Programming and Scripting

Script needed!! - Please help

Hi All, I have a text file contains the follwoing info: HOST_CONFIG spbf1n01 3181 patrolpv "B6abbKEW5L1TCE5B282445" I E W A HOST_CONFIG spbf1n02 3181 patrolpv "B6abbKEW5L1TCE5B282445" I E W A HOST_CONFIG spbf1n03 3181 patrolpv "B6abbKEW5L1TCE5B282445" I E W A Whenever the String... (6 Replies)
Discussion started by: ntgobinath
6 Replies

5. Shell Programming and Scripting

help needed for a script!!

Hi!! Im new to shell scripting. I have an important assignment to complete in my company tomorrow. Please help me. I have to write an interactive script which does the following thing: There is a file named ""rules"in a folder say /home/f1/ . This file contains text in the form: 123 345... (5 Replies)
Discussion started by: rahul195
5 Replies

6. Shell Programming and Scripting

Help Needed in Sh script

hi, Im trying to select from a sql using shell script and once i get count i need to add the count to the subject line and send mail to every1.. ex : Select count(*) from emp; In Shell script echo $PASSWORD|$ORACLE_HOME/bin/sqlplus $USERID@$DBNAME @$SCRIPT_DIR/emp_count.sql... (1 Reply)
Discussion started by: jkumsi
1 Replies

7. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

8. UNIX for Dummies Questions & Answers

help in script needed

Hi, I am developing a script for writing out the failed jobs in file, 1)First step i need to create an empty file Status with today's date. 2)After that i need to execute the below command: dsjob -server servername -user uname -password pwd -ljobs projectname This will listout all... (5 Replies)
Discussion started by: pandeesh
5 Replies

9. Shell Programming and Scripting

Help needed for script

Hi, I have a big list like this --> 3285 3289 328D 3291 3295 3299 329D 32A1 I need to make it like --> 3285|3289|328D|3291|3295|3299|329D|32A1 Please suggest. This is Linux OS. (8 Replies)
Discussion started by: solaris_1977
8 Replies

10. Shell Programming and Scripting

Help Needed on Script

Hi team, I am looking to execute some command through xargs. $cat testfile | grep myloc alias myloc='cd /export/nfs-1sv-23/' I am trying to execute that alias as soon as i cat and grep ? I tried with $cat testfile | grep myloc | xargs --> no luck ... Can some one assist me with... (6 Replies)
Discussion started by: itsme488
6 Replies
prs(1)							      General Commands Manual							    prs(1)

Name
       prs - display information from an SCCS file

Syntax
       prs [-d[dataspec]] [-r[SID]] [-e] [-l] [-a] files

Description
       The command prints on the standard output all or parts of an SCCS file in a user supplied format.  For further information, see If a direc-
       tory is named, behaves as though each file in the directory were specified as a named file, except that non-SCCS files (last  component	of
       the  path  name	does  not begin with s.), and unreadable files are silently ignored.  If a name of - is given, the standard input is read;
       each line of the standard input is taken to be the name of an SCCS file or directory to be processed; non-SCCS files and  unreadable  files
       are silently ignored.

       Arguments to which may appear in any order, consist of keyletter arguments, and file names.

Options
       All the described keyletter arguments apply independently to each named file:

       -a		   Displays printing of information for both removed and existing deltas.  For example, removed delta type = R, and exist-
			   ing delta type = D.	For further information, see If the -a keyletter is not specified, information	is  provided  only
			   for existing deltas.

       -d[dataspec]	   Displays  information  specified by dataspec.  The dataspec is a string consisting of SCCS file data keywords (see DATA
			   KEYWORDS) interspersed with optional user-supplied text.

       -e		   Displays information for all deltas created earlier than and including the delta designated by the -r keyletter.

       -l		   Displays information for all deltas created later than and including the delta designated by the -r keyletter.

       -r[SID]		   Indicates delta version number.  If no SID is specified, the SID of the most recently created delta is assumed.

Data Keywords
       Data keywords specify which parts of an SCCS file are to be retrieved and printed on the standard output.  All parts of an SCCS	file  have
       an associated data keyword.  For further information, see There is no limit on the number of times a data keyword may appear in a dataspec.

       The information printed by consists of the user supplied text and the appropriate values (extracted from the SCCS file) substituted for the
       recognized data keywords in the order of appearance in the dataspec.  The format of a data keyword value is either  Simple  (S),  in  which
       keyword substitution is direct, or Multi-line (M), in which keyword substitution is followed by a carriage return.

       User  supplied text is any text other than recognized data keywords.  A tab is specified by 	 and carriage return/new-line is specified by
       
.

							Table 1. SCCS Files Data Keywords
			      Keyword Data Item 			      File Section	 Value	     Format
			       :Dt:   Delta Information 		      Delta Table     See below*       S
			       :DL:   Delta line statistics			  "	    :Li:/:Ld:/:Lu:     S
			       :Li:   Lines inserted by Delta			  "		 nnnnn	       S
			       :Ld:   Lines deleted by Delta			  "		 nnnnn	       S
			       :Lu:   Lines unchanged by Delta			  "		 nnnnn	       S
			       :DT:   Delta type				  "		D or R	       S
			       :I:    SCCS ID string (SID)			  "	    :R:.:L:.:B:.:S:    S
			       :R:    Release number				  "		 nnnn	       S
			       :L:    Level number				  "		 nnnn	       S
			       :B:    Branch number				  "		 nnnn	       S
			       :S:    Sequence number				  "		 nnnn	       S
			       :D:    Date Delta created			  "	    :Dy:/:Dm:/:Dd:     S
			       :Dy:   Year Delta created			  "		  nn	       S
			       :Dm:   Month Delta created			  "		  nn	       S
			       :Dd:   Day Delta created 			  "		  nn	       S
			       :T:    Time Delta created			  "	    :Th:::Tm:::Ts:     S
			       :Th:   Hour Delta created			  "		  nn	       S

			       :Tm:   Minutes Delta created			  "		  nn	       S
			       :Ts:   Seconds Delta created			  "		  nn	       S
			       :P:    Programmer who created Delta		  "		logname        S
			       :DS:   Delta sequence number			  "		 nnnn	       S
			       :DP:   Predecessor Delta seq-no. 		  "		 nnnn	       S
			       :DI:   Seq-no. of deltas incl., excl., ignored	  "	    :Dn:/:Dx:/:Dg:     S
			       :Dn:   Deltas included (seq #)			  "	     :DS: :DS:...      S
			       :Dx:   Deltas excluded (seq #)			  "	     :DS: :DS:...      S
			       :Dg:   Deltas ignored (seq #)			  "	     :DS: :DS:...      S
			       :MR:   MR numbers for delta			  "		 text	       M
			       :C:    Comments for delta			  "		 text	       M
			       :UN:   User names			       User names	 text	       M
			       :FL:   Flag list 				 Flags		 text	       M
			       :Y:    Module type flag				  "		 text	       S
			       :MF:   MR validation flag			  "	       yes or no       S
			       :MP:   MR validation pgm name			  "		 text	       S
			       :KF:   Keyword error/warning flag		  "	       yes or no       S
			       :KV:   Keyword validation string 		  "		 text	       S
			       :BF:   Branch flag				  "	       yes or no       S
			       :J:    Joint edit flag				  "	       yes or no       S
			       :LK:   Locked releases				  "		:R:...	       S
			       :Q:    User-defined keyword			  "		 text	       S
			       :M:    Module name				  "		 text	       S
			       :FB:   Floor boundary				  "		  :R:	       S
			       :CB:   Ceiling boundary				  "		  :R:	       S
			       :Ds:   Default SID				  "		  :I:	       S
			       :ND:   Null delta flag				  "	       yes or no       S
			       :FD:   File descriptive text			Comments	 text	       M
			       :BD:   Body					  Body		 text	       M
			       :GB:   Gotten body				  "		 text	       M
			       :W:    A form of what (1) string 		  N/A	       :Z::M::I:       S
			       :A:    A form of what (1) string 		  N/A	   :Z::Y: :M: :I::Z:   S
			       :Z:    what (1) string delimiter 		  N/A		 @(#)	       S
			       :F:    SCCS file name				  N/A		 text	       S
			       :PN:   SCCS file path name			  N/A		 text	       S

	  *:Dt: = :Dt: :I: :D: :T: :P: :DS: :DP:

Examples
       The following is an example of a command line and what it produces on the standard output:
       prs -d"Users and/or user IDs for :F: are:
:UN:" s.file

	      Users and/or user IDs for s.file are:
	      xyz
	      131
	      abc

       This is another example and its output.
       prs -d"Newest delta for pgm :M:: :I: Created :D: By :P:" -r s.file

	      Newest delta for pgm main.c: 3.7 Created 77/12/1 By case

       This is an example of a special case:
       prs s.file

       This is what it may produce on the standard output:

	      D 1.1 77/12/1 00:00:00 cas 1 000000/00000/00000 MRs: bl78-12345 bl79-54321 COMMENTS: this is the comment	line  for  s.file  initial
	      delta  for each delta table entry of the ``D'' type.  The only keyletter argument allowed to be used with the special case is the -a
	      keyletter.

Diagnostics
       See for explanations.

Files
       /tmp/pr?????

See Also
       admin(1), delta(1), get(1), help(1), sccs(1), sccsfile(5)
       Guide to the Source Code Control System

																	    prs(1)
All times are GMT -4. The time now is 03:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy