This document provides information about commands used to invoke Informatica workflows and basic Unix scripts from the pmcmd prompt in Informatica. It lists common pmcmd commands like connect, startworkflow, getworkflowdetails, and stoptask. It also describes related commands like pmrep for updating repository information and performing repository functions. The document is intended as a reference for commands that can be used to control and automate Informatica workflows through a Unix environment when the Informatica server is a Unix server.
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
270 views
Informatica UNIX Commands
This document provides information about commands used to invoke Informatica workflows and basic Unix scripts from the pmcmd prompt in Informatica. It lists common pmcmd commands like connect, startworkflow, getworkflowdetails, and stoptask. It also describes related commands like pmrep for updating repository information and performing repository functions. The document is intended as a reference for commands that can be used to control and automate Informatica workflows through a Unix environment when the Informatica server is a Unix server.
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 14
Naresh i Technologies, Hyderabad, 04023746666
INFORMATIA !NI" o##ands
These are requred commands to nvoke nformatca workfows and Basc unx scrpt. 1.PMCMD 2.MKDIR 3.RM 4.CP 5.<condton statements> e IF ELSE 6.GREP 7.ZIP COMMANDS 8.LS(wth dfferent optons) 9.TOUCH 10.MV You w get pmcmd prompt pmcmd> step2:. run connect command to connect to repostory/ cd to go to nformatca server drectory pmcmd>connect t w ask repostory name/password step3: run whatever command you need (startworkfow,stopworkfow,abortworkfow,starttas t.....) Some more usefu commands woud be PMREP The pmrep s a command ne program that you use to update repostory nformaton and perform repostory functons. Its nstaed n Repostory Server nstaaton drectory, t s usuay ( $PM_HOME/repserver ). You can execute ths command ke a command ne or you can execute from a scrpt UNIX.Ths command has got a ot of optons, for exampe, you can connect to a repostory f you execute the foowng command: pmrep connect -r, -n, -x, -h, -o pmcmd : Unx command to contro Informatca Workfow pmcmd command s used to contro nformatca repostory events thru Unx, When nformatca server s an Unx server. Snce Unx s a very powerfu and command end to nteract wth mutpe data storage sources (fatfe, orace, sq server, xm etc.). We can check for a ndcator fe and execute/stop/abort a Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 sesson/workfow.In ths way, we can reduce varous task/commands and whoe datafow w be automated at an extend. Sesson specfc, pmcmd stoptask -s $server_name -u $user_name -p $pass -f $foder -w $wkf $sess Keys : stoptask : To stop a task gettaskdetas : To retreve task detas starttask : To Execute a task aborttask : To abort a task wattask : To Run a task n wat mode workfow specfc, pmcmd startworkfow-s $server_name -u $user_name -p $pass -f $foder $wkf Keys : stopworkfow : To stop a workfow getworkfowdetas : To retreve workfow detas startworkfow : To Execute a workfow abortworkfow : To abort a workfow watworkfow : To Run a workfow n wat mode pmcmd command wth parameter fe pmcmd startworkfow-s $server_name -u $user_name -p $pass -f $foder -paramfe paramfe_name -wat $wkf Apart from these pmcmd command optons , varous utty optons avaabe PMCMD means program command ne utty. t s a program command ne utty to communcate wth nformatca server. (MM) *er+or#s +ollo,ing -as.s 1)start and stop batches and sessons 2)recovery sessons 3)stops the nformatca 4)schedue the sessons by she scrptng 5)schedue the sessons by usng operatng system schedue toos ke CRON The foowng commands were hepfu for pmcmd: Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 pmcmd>connect -sv Servce -d doman -u username -p password pmcmd>startworkfow -f 'foder' workfow pmcmd>getworkfowdetas -f 'foder' -rn workfow pmcmd>gettaskdetas -f 'foder' workfow pmcmd>stoptask -f 'foder' workfow pmcmd>getsessonstatstcs -f 'foder' workfow pmcmd>schedueworkfow -f 'foder' workfow pmcmd>unschedueworkfow -f 'foder' workfow pmcmd>dsconnect -sv Servce -d doman -u username -p password %A% o##ands &nder !NI" Ths secton descrbes commands that you can enter on the command ne n the wndowng envronment of SAS. The commands that are descrbed here have behavor or syntax that s specfc to UNIX envronments. Each command descrpton ncudes a bref "UNIX specfcs" secton that expans whch aspect of the command s specfc to UNIX. If the nformaton under "UNIX specfcs" says "a," then the command appes to the UNIX operatng envronment and s descrbed ony n ths document. A!TO%RO// o##and0 Syntax AUTOSCROLL <n> n specfes the number of nes that the wndow shoud scro when t receves a ne of data that cannot ft. The AUTOSCROLL command contros the scrong of nes as they are wrtten to the Log and Output wndows. The defaut vaue for AUTOSCROLL n the Log and Output wndows s 1 . Processng s sower when AUTOSCROLL dspays one ne at a tme. To expedte processng, you can specfy a greater AUTOSCROLL vaue n your autoexec.sas fe. Specfyng a vaue of 0 optmzes processng and resuts n the fastest scrong (smar to |ump scrong n xterm wndows). To add the AUTOSCROLL command to your autoexec.sas fe, you must use the DM command. The foowng exampe maxmzes scrong n both the Log and Output wndows: dm 'output; autoscro 0; og; autoscro 0; pgm;'; A(% o##and0 Changes the defaut case of text. UNIX specfcs: a Syntax CAPS <ON | OFF> Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 O/OR o##and0 Syntax: COLOR fed-type coor|NEXT <hghght> Detas Under UNIX, you cannot use the COLOR command to change the coors n these fed types: BORDER, MENU, MENUBORDER, SCROLLBAR, or TITLE. Aso, the H (HIGHLIGHT) and B (BLINK) attrbutes are not supported. For more nformaton about the COLOR command, see the onne Hep for the Program Edtor wndow. )/1A2O!T o##and Opens the About SAS daog box. Syntax DLGABOUT Detas The About SAS daog box dspays nformaton such as the reease of SAS that you are runnng, your ste number, the operatng system, the verson of Motf that you are usng, and the coor nformaton from your PC. )/1)IR o##and Opens the Change Workng Drectory daog box. Syntax DLGCDIR Detas The Change Workng Drectory daog box enabes you to seect a new workng drectory. To access ths daog box from the menu, seect Toos Optons Change Drectory. )/13N)R o##and Opens the Ext daog box. Syntax DLGENDR Detas The Ext daog box prompts you to confrm that you want to ext SAS. If you choose OK, the SAS sesson ends. If you have set the SAS.confrmSASExt resource to Fase , ths command becomes equvaent to the BYE command. To access ths daog box from the menu, seect Fe Ext. )/1FIN) o##and445O*ens -he Find dialog bo6$ Syntax DLGFIND Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 Detas The Fnd daog box enabes you to search for text strngs. To access ths daog box from the menu, seect Edt Fnd )/1FONT o##and Opens the Fonts daog box. Syntax DLGFONT Detas The Font daog box enabes you to dynamcay change the SAS font. To access ths daog box from the menu, seect Toos Optons Fonts. )/1O(3N o##and Opens the Open daog box. Syntax DLGOPEN <FILTERS='fters' <IMPORT> <SUBMIT|NOSUBMIT> <VERIFY>> The Open and Import Image daog boxes enabe you to seect a fe to read nto the actve wndow. If the actve wndow s a SAS/GRAPH wndow, then the Import Image daog box s dspayed; otherwse, the Open daog box s dspayed. To access these daog boxes from the menu, seect Fe Open or Fe Import Image. FILTERS='fters' specfes one or more fe fters to use as search crtera when dspayng fes. For exampe, the foowng command dspays a fes n the current drectory that have a .sas extenson and adds *.txt to the Fe type box n the daog box: DLGOPEN FILTERS="*.sas *.txt"You can specfy mutpe fters; they a appear n the box. If you do not specfy any fters, the daog box dspays a defaut st. See the descrpton of the SAS.pattern resource n Msceaneous Resources n UNIX Envronments for nformaton about specfyng a defaut fe pattern. )/1(R3F o##and Opens the Preferences daog box. Syntax DLGPREF Detas The Preferences daog box enabes you to dynamcay change certan resource settngs. To access ths daog box from the menu, seect Toos Optons Preferences. )/1R3(/A3 o##and Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 Syntax DLGREPLACE Detas The Change daog box enabes you to search for and repace text strngs. To access ths daog box from the menu, seect Edt Repace. )/1%A73 o##and Opens the Save As or Export daog box. To access ths daog box from the menu, seect Fe Save as or Fe Export as Image. Syntax DLGSAVE <FILTERS='fters' <EXPORT> <VERIFY>> FILTERS='fters' specfes one or more fe fters to use as search crtera when dspayng fes. For exampe, the foowng command dspays a fes n the current drectory that have a .sas extenson and adds *.txt to the Fe type box n the daog box: DLGSAVE FILTERS="*.sas *.txt" )/1%R)!M( o##and Saves the actve SAS/GRAPH wndow as an mage fe usng the fename and fe type that you specfy. Syntax DLGSCRDUMP <'fename.ext' 'FORMAT=fe-type'> Detas DLGSCRDUMP saves the actve GRAPH wndow as an mage fe by usng the fename and fe type that you specfy. If you do not specfy arguments, DLGSCRDUMP opens the Export daog box and enabes you to choose a fename and fe type. You can save dspays n any mage format supported by SAS/GRAPH wth mage extensons. If your ste has not censed SAS/GRAPH wth mage extensons, then dspays can be saved ony as XPM fes. )/1%MAI/ o##and Opens the Send Ma daog box. Syntax DLGSMAIL Detas The Send Ma daog box ets you send eectronc ma whe workng n SAS. To access ths daog box from the menu, seect Fe Send ma. FI/3 o##and Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 Wrtes the contents of the current wndow to an externa fe. Syntax FILE <fe-specfcaton> <ENCODING='encodng-vaue'><portabe-optons> <host-optons> Detas If you do not enter a fe specfcaton, SAS uses the fename from the prevous FILE or INCLUDE command. In ths case, SAS frst asks f you want to overwrte the fe. If you have not ssued any FILE or INCLUDE commands, you receve an error message that ndcates that no defaut fe exsts. FI// o##and Specfes the f character. Syntax FILL <f-character> f-character specfes the character to be used to f out a ne. Detas Under UNIX, the defaut f character s an underscore (_). FONT/I%T o##and Opens the Seect Font wndow, whch sts avaabe software fonts. Syntax FONTLIST Detas The FONTLIST command opens wndows that st a of the software fonts that are avaabe n your operatng envronment. Ths feature s usefu f you want to choose a font to use n a SAS program, typcay wth a FONT= or FTEXT= opton. 1%!2MIT o##and Submts SAS code stored n a paste buffer Syntax GSUBMIT BUF=buffername|"statement1;statementN...;" HOM3 o##and Togges the cursor poston between the current poston and the command ne. Syntax HOME Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 Detas Keyboards vary among the dfferent UNIX operatng envronments. To determne whch key s assgned to the HOME command, ook n the Keys wndow. To open the Keys wndow, ssue the KEYS command. HO%T3)IT o##and Starts the UNIX edtor, specfed by the EDITCMD system opton, n the current wndow. Syntax HOSTEDIT Detas When you ssue the HOSTEDIT command from a SAS text edtor wndow, the contents of the buffer for that wndow are wrtten to a temporary fe n the /tmp drectory. A command nvokng the host edtor that was specfed n the EDITCMD system opton s passed to the SAS Sesson Manager. The SAS Sesson Manager ssues the command to the operatng envronment to nvoke the edtor for the temporary fe. The X dspay used wth the HOSTEDIT command s the same one used wth your SAS sesson. HED s an aas for the HOSTEDIT command. IN/!)3 o##and Copes the entre contents of an externa fe nto the current wndow. Syntax INCLUDE <fe-specfcaton> <ENCODING='encodng-vaue'> <portabe- optons> <host-optons> Detas If you do not enter a fe specfcaton, then SAS uses the fename from the prevous FILE or INCLUDE command. In ths case, SAS frst asks f you want to overwrte the fe. If you have not ssued any FILE or INCLUDE commands, then you receve an error message to ndcate that no defaut fe exsts. %3TA!TO%A73 o##and Turns autosave on and off. Syntax SETAUTOSAVE <ON|OFF> Detas The SETAUTOSAVE command turns autosave on or off for the Program Edtor. However, the vaue set for autosave n the Preferences daog box has precedence. To open the Preferences daog box, seect Toos Optons Preferences. Autosave s controed by the Backup Documents check box on the Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 DMS tab. On ths tab, there s aso a fed n whch you can specfy the nterva for these backups. If you turn autosave on usng the SETAUTOSAVE command and the Backup Documents check box s seected, then SAS automatcay saves the contents of the Program Edtor nto a fe named pgm.asv n your current drectory at the nterva specfed on the DMS tab. If you ssue ths command but do not specfy ON or OFF, SAS dspays the current autosave settng. %3T)M%FONT o##and Specfes a wndowng envronment font for the current sesson. Syntax SETDMSFONT "font-specfcaton" font-specfcaton specfes an XLFD (X Logca Font Descrpton) pattern that you want SAS to use n order to determne the wndowng envronment font. Detas Most fonts n the X Wndow System are assocated wth an XLFD, whch contans a number of dfferent feds that are demted by a dash (-) character. The feds n the XLFD ndcate propertes such as the font famy name, weght, sze, resouton, and whether the font s proportona or monospaced. See your X Wndow system documentaton for more nformaton about the XLFD and font names that are used wth the X Wndow System. TOO//O%3 o##and Coses the toobox. Syntax TOOLCLOSE Detas The TOOLCLOSE command coses the toobox. TOO/3)IT o##and Opens the Too Edtor on the specfed toobox Syntax TOOLEDIT <brary.cataog.entry> Detas If you do not specfy an entry name, the Too Edtor edts the toobox for the actve wndow. TOO//AR13 o##and Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 Togges the sze of the SAS TooBox wndow. Syntax TOOLLARGE <ON|OFF> ON sets the sze of the cons n the SAS TooBox to 48x48. OFF sets the sze of the cons n the SAS TooBox to 24x24. Detas If you do not specfy ON or OFF, the TOOLLARGE command togges the sze of the SAS TooBox. The sze of the SAS TooBox changes for your current sesson ony; the new sze s not saved. You can aso use the menu to change the sze of the SAS TooBox through the Preferences daog box. Seect Toos Optons Preferences. Seect the TooBox tab, and then seect Use arge toos. If you change the sze of the SAS TooBox through the Preferences daog box, the new sze s saved, and SAS dspays the arge toobox n subsequent sessons. TOO//OA) o##and Loads a specfc toobox. Syntax TOOLLOAD <brary.cataog.entry> Detas If you do not specfy an entry name, TOOLLOAD oads the toobox for the actve wndow. TOO/TI(% o##and Togges the TooTp text for an con n the toobox Syntax TOOLTIPS <ON|OFF> ON specfes that the TooTp text s dspayed when you move the cursor over an con n the toobox. OFF specfes that the TooTp text s not dspayed. Detas Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 If you do not specfy ON or OFF, the TOOLTIPS command turns the TooTp text on or off, dependng on the current settng. You can aso use the Preferences daog box to specfy whether TooTp text s dspayed by seectngToos Optons Preferences. Seect the TooBox tab, and then seect Use tp text. 82RO8%3 o##and Opens a Word Wde Web (WWW) browser. Syntax WBROWSE <"ur"> Detas WBROWSE nvokes the Web browser that s specfed by the resource SAS.hepBrowser . If you specfy a URL, the document that the URL dentfes s automatcay dspayed. If you do not specfy a URL, the SAS home page s dspayed. 8O(9 o##and Copes the marked contents of the actve wndow to the defaut buffer. Syntax WCOPY Detas In Base SAS wndows, ths command executes the STORE command. 8!T o##and Moves the marked contents of the actve wndow to the defaut buffer. Syntax WCUT Detas In Base SAS wndows, ths command executes the CUT command. Ths command s vad ony when the actve wndow s a text edtor wndow, such as Program Edtor or Notepad. 8)3F o##and Redefnes the actve wndow. Syntax WDEF startng-row startng-co nrows ncos Detas The WDEF command operates n the appcaton workspace assgned to the SAS sesson. The WDEF command does not operate n the AWS contaner wndow, Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 except when the contaner wndow needs to be enarged so that you can vew a SAS wndow contaned n t. AWS resze behavor s controed by the SAS.awsReszePocy resource. 8(A%T3 o##and Pastes the contents of the defaut buffer nto the actve wndow. Syntax WPASTE Detas In Base SAS wndows, ths command executes the PASTE command. 8!N)O o##and Undoes one ne of text entry, or undoes the ast cut, copy, or paste acton. Syntax WUNDO Detas In Base SAS wndows, ths command executes the UNDO command. In SAS/GRAPH wndows, WUNDO s nvad. " o##and Enabes you to enter UNIX commands wthout endng the SAS sesson. Syntax X UNIX-command X 'cmd1;cmd2....<;cmd-n>' Detas When you enter the X command, SAS starts a she to execute the commands that you specfed. The commands that you enter are processed dfferenty, dependng on whether you enter one command or more than one command. "%9N o##and Changes X synchronzaton durng a SAS sesson. Syntax XSYNC <ON|OFF> Detas Ths command turns off the bufferng that s normay done by the X Wndow System. X synchronzaton s off by defaut. Turnng t on s usefu when you are debuggng appcatons, athough t drastcay reduces performance. 8ha-:s a !ni6 2o6; And ho, do I ge- one; Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 A UNIX box s a computer runnng UNIX or a UNIX ke OS. If you want to run a 'pure' UNIX OS, you better have a ot of money, as UNIX doesn't come cheap. The cheaper aternatve s a LINUX OS (one of the varants out there). Lnux s UNIX ke n ts nature and functonay very smar to UNIX. So Lnux s the perfect OS to sharpen your teeth on UNIX wthout the expensve outay of money. Aso, I'm not too sure about UNIX, but AFAIK UNIX mght need a bt more power than a 486 wth 8Mb RAM. Even most Lnux varants have troube wth that ow powered hardware. Don't get me wrong you can st run varous versons, |ust don't expect to oad the atest RedHat or Mandrake on t. You woud probaby be better wth a mn dstrbuton of Lnux, or maybe even the bgger fu dstrbutons of Deban or Sackware, you mght get away wth t. Fre<&en-ly !sed !NI" o##ands in %A( 1. stopsap/startsap for stoppng/startng SAP+ DB, stopsap r3/startsap r3 for stoppng/startng R3 2. cdpro for checkng the profes path SAPMNT/<SID>/profe 3. cdexe for checng the kerne foder 4. fnd . -name fename -prnt for checkng the fe n the present drectory 5. dpmon pf= <Instance profe path>, |cmon pf=<nstance profe path> 6. df -k, bdf for checkng a fe system usages; df -k ., bdf. for ndvdua fe usages 7. s -rt for stng of fes accordng to the date modfed 8. du -a | sort -k 1n,1 for sortng the fes n a recursve manner. 9. h for stng prevous used commands. 10. rm < fe> for removng fe, gzp <fe> for zppng the fe. %e-2 1. VI and Gedt s an Edtor, |ust ke to wrte any programme save t and go to command and compe through through GCC -o .cpp 2. Ps -ef s to check the how many runnng process and K any runnng process 3. gunzp to unzp fe 4. tar -xvzf fe name to run the zp foder of fe content 5. mv mo from one path to another 6. Rf remove forcfuy any fe 7. Make command to effect any coadng content 8. make cean to cean the effect of make command 9. cp coppy from one ocaton to another Prepared By Mr$ %&bba Ra'& Naresh i Technologies, Hyderabad, 04023746666 10. pwd check the current drectory Prepared By Mr$ %&bba Ra'&