Help needed in script

Hi All...
We have one custom form and driver program. Now i need to copy those two with diffrent names and i need to make some changes in that. What my problem is.. after making the changes we created an output type and we attached the form name and driver programname in that. But in the out put type it is showing an error like <b>"Form routine could not found in the in the program ZVVVV" </b>
But in the driver program there is a select query on TNAPR table to get the formname. I checked in that table there was an entry with old form name and driver program. How do i make an entry in TNAPR. Is that entry should manully made or by customising it will happen...?(By Fucntional People). If it is work of functional people what should they do exactly..
<b>please help me out in that...</b>
<b>Useful solutions will be rewarded....</b>
Regards,
Arjun.

Hi arjun,
1. Go to nace
2. select application
3. click output type button and select output type
4. double click on processing routines
5.There u assign u r changed driverprogram name and form name
Program - changed program name
Form - changed Form name
Then an entry will be created in tnapr table
In TNAPR table the driver program name and form nanes will be stored.To check it,
go to se11 enter tnapr table
give the form name and execute u will get the driver program of that particular form
fields,
PGNAM - Program name
FONAM - Form name
(or) if u want to directly see whether u have given the changed driverprogram name and form name in nace
1. in se11 give view name as VN_TNAPR
2. execute it
3. it will ask for o/p type and application give it
4. then u can directly go to nace "display view processing routines" screen
There u check whether u have changed the entries if not repeat nace procedure

Similar Messages

  • Help need to script(urgent)

    hai everybody...
    i ahve written a javascript for popup a new
    window...this is my script
    script
    function open()
    if(portal40.wwctx_api.get_user=='JAYANTHAN')
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQUIRY_REP.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_row s&p_arg_values=25','new_page','width=1500,height=550,scrollbars=yes');
    else
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQ_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_rows &p_arg_values=25','new_page','width=1000,height=950,scrollbars=yes');
    open();
    but it doesn't open the new window...
    for this i have created two reports,the above links are the report links...if it satisfy the condition then the first link lead to the
    first report if not then second report
    please help need ....
    thansk in advance
    leena
    null

    This example will read and put the Authors name to the ESTK console and write the new details back to the document.
    #target bridge
    loadXMPLibrary();
    var thumb = app.document.selections[0];
    if(thumb.hasMetadata){
            var selectedFile = thumb.spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();   
      var arrItem='';
      var items = myXmp.countArrayItems(XMPConst.NS_DC, "creator");
       for(var i = 1;i <= items;i++){
    arrItem += myXmp.getArrayItem(XMPConst.NS_DC,  "creator", i);          
        $.writeln(arrItem);
    var Author = "This is my new Author";
    myXmp.deleteProperty(XMPConst.NS_DC, "creator");
    myXmp.appendArrayItem(XMPConst.NS_DC, "creator", Author, 0,XMPConst.ARRAY_IS_ORDERED);
    if (myXmpFile.canPutXMP(myXmp)) {
        myXmpFile.putXMP(myXmp);
             myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    unloadXMPLibrary();
    function loadXMPLib(){
    if (ExternalObject.AdobeXMPScript == undefined) {
        ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    function unloadXMPLib(){
       if( ExternalObject.AdobeXMPScript ) {
          try{
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
          }catch (e){ }

  • Need help - need a script

    Hi All,
    I have no knowledge of applescript and need something made to meet a deadline. I am a graphic artist for the national office of a non-profit with 400 agencies.
    I need a script to control adobe illustrator to make customized logo packages for all of the agencies. I have 5 base documents. There are multiple logos per document. The text is set as "aaa" that needs to be customized. I am doing a find and replace to insert the text. Each file also has a 'tagline' layer that gets turned off and saved that way also.(a PNG) One master file gets saved as an illustrator PDF.
    I need the script to ask me what the agency number is and also what the agency name is and make/name a new folder and then process the logos in illustrator saving the files in the new folder.
    They needed to be completed yesterday, but it takes me roughly 10 to 15 minutes to do one agency. I have no time to work on them during the day a all so I am pretty deserate. We have no budget for this, but I am willing to pay $50 or so out of my own pocket(sorry... recently had twins so I'm broke too)
    Please contact me at [email protected] if you could do this.

    Hi jasonschaeffer
    try here
    http://macfreelancer.com/
    Budgie

  • Help Needed: InDesign Scripting: PDF Multiple Files and Pages Import

    I am looking for a script to merge two PDFs in InDesign CS3 (Mac or PC);
    with an interesting twist for print production.
    We have one PDF that is 408 pages. The second PDF is only one page.
    What we need to accomplish is importing the 408-page PDF file into InDesign,
    then inserting the second 1-page 408 times PDF AFTER every page of the first
    file.
    This will make a 816-page file, where every other page is the "generic" PDF.
    I've used PDFplacer.jsx and it does a great job of bringing in a PDF to
    InDesign. I'm hoping that there is another script to bring in the second
    1-page PDF and have it place this PDF after every page of the file.
    Does anyone know of a script that will accomplish this task?
    I'd also consider having this same scenario done in Acrobat, and then
    sending this new 816 page file to print, if there is any benefit to creating
    the file this way.
    Any help and suggestions would be greatly appreciated.
    Jim Lukens-Gable
    JHL4 at PSU.EDU

    Thanks, Robin,
    I am really a novice at scripting . . . would you be able to modify the script and then send it to me/post it here?
    Thank you!
    Jim L-G

  • HELP, need quick script fix

    Hi,
    Our InDesign is acting up here. We are designing massive amounts of tables for various annual reports. After the design for print is done, these tables need exporting to xHTML.
    We have tested this extensively, and written complicated CSS files and many cell-styles to make it work.
    The thing is, that now when the final test-export needs to be done. InDesign suddenly returns a Stack Overrun error message when exporting. The only thing that seems to happen is that we cut out each page, paste it into a new document, save, and then do the xHTML export. But we are talking hundreds of pages here.
    My Apple script is not too good, but I am sure this can be done by a simple script. And I am quite sure it has been done before.
    Can anyone here please point me in the correct direction.
    PS. A bug report has been made to Adobe about this issue

    Thank you for the quick reply. Smart ports look very cool. I like the idea and may find this useful for other purposes but if I am reading this right, it won't work for what I need. It looks like he would need to log into the switch to apply the macro. He is a phone guy and does not want to actually touch the switch. So I was looking for like a perl script of something that I could configure with my TACACS credentials. Also I won't know what port he needs reconfigured until he needs it, so I need him to be able to add the port number as a variable without him actually having to do any programming. he would be will to run it as part of a command (i.e run command.exe 10.10.10.22 g1/0/22 222, where 10.10.10.22 is switch IP, g1/0/22 is port, and 222 is the new vlan) or if I can do somekind of prompt that would be great!

  • Help Needed With Scripting and Error Messages

        I am working to build a script to change orders in SAP using Java. I begun by recording steps and combining them.  I am having issues with the Warning and Error Messages.  Can someone help me write language to have the script enter through the warnings or errors if they pop up, but move to the next step if nothing pops up?? Some orders have the message, some do not, some have multiples... etc...
    Thanks!!

    Hello Jamie.
    Getting popup you can use an Loop like below (this is now for Excel VBA coded):
    For Each subWindow In Session.Children
                If subWindow.Name = "wnd[1]" Then
                    On Error Resume Next
                    Session.FindById("wnd[1]").sendVKey 0
                    Session.FindById("wnd[1]/usr/btnANSWER_YES").press
                    Session.FindById("wnd[1]/usr/btnSPOP-OPTION2").press
                End If
            Next
    For Messages in SAP session statusbar like this:
    If Session.FindById("wnd[0]/sbar").Text <> "" Then ...
    To catch error Messages defined by messagetype you can use this:
    If Session.FindById("wnd[0]/sbar").messagetype = "S" Then ... 'sucess messagetype
    If Session.FindById("wnd[0]/sbar").messagetype = "I" Then ... 'Information messagetype
    If Session.FindById("wnd[0]/sbar").messagetype = "E" Then ... 'Error messagetype
    Aso...like we have in SAP
    Hope this help a bit to achieve your requirements.
    Best regards,
    Holger

  • Help needed with scripting pdf

    my app requires to retrieve user selected text in a pdf and do operations with it ..... i tried using the window.selection ... but does not work out ..... any ideas how can this be done .....
    thnx a lot !!!

    To access the selected text in a PDF file, the PDF file must include a JavaScript function that exposes the selected text.
    For information on cross-scripting from the AIR application code to JavaScript in a PDF file, see the following:
    http://help.adobe.com/en_US/FlashPlatform/develop/actionscript/3/WS5b3ccc516d4fbf351e63e3d 118666ade46-7eb4.html
    (for developers of ActionScript-based AIR applications)
    http://help.adobe.com/en_US/FlashPlatform/develop/air/html_devguide/WS5b3ccc516d4fbf351e63 e3d118666ade46-7eb4.html
    (for developers of HTML-based AIR applications)

  • Help need fix: Script Error. Continue? [Yes] [No]

    I have been using Compose World Create for a while and I am able to use it fine as an admin, however if I am a normal user it gives me this error:
    Script Error. Continue? [Yes] [No]
    When "Yes" is clicked, nothing happens. Upon clicking "No" the software closes. I have attempted to change the permissions on this software to allow an ordinary user to open it without the error but it has made no difference. I have tried a later version of the Macromedia Director (I have been told that this is actually Adobe Shockwave) and that has also failed. I would appreciate it if someone could advise me on how to fix this.

    This is an error only the developer of the software in question can fix. You'll need to notify them of the error and hope they're prepared to address it.

  • Help needed in scripts

    can any one help me how to print Barcode in vertical manner

    http://help.sap.com/saphelp_nw04/helpdata/en/de/ee076cebd211d18e370000e83dd9fc/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/ee0769ebd211d18e370000e83dd9fc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/ee076cebd211d18e370000e83dd9fc/content.htm

  • Need help in creating script for "Task Schedule" in Oracle E-Bussiness Suit

    Hi,
    I need some urgent help regarding the scripting of Oracle E-Business Suite application. I am new towards working on Oracle Applications. I have been using LoadRunner 11.0 and protocol oracle applications 11i for the scripting of the application. The problem is as follows:
    Scenario- Schedule an incident to a resource.
    1) Log in to the application.
    2) Open Oracle Forms Page.
    3) Enter the details of the incident number.
    4) Right click on the incident number and then select “schedule” option.
    5) Check / Select the resource listed in the new form.
    6) Click on “schedule” Button.
    7) Exit the oracle forms.
    8) Logout from the application.
    I have recorded the scenario but when I try to run the script, it fails after completing the 4th step from the scenario mentioned above. I have done all the required co-relations..
    Another issue that I have noticed in the scipt is that it records a lot of requests to the AppsTCFServer.
    When I check the Tree View of the script, I have found that there are around 25 requests to the AppsTCFServer recorded in the script. In the header of these requests a TCF Start/Session number gets generated randomly. This number stays the same in few AppsTCFServer request headers and then a new number gets generated and the cycle continues.
    However LoadRunner does not generate this number by itself during replay. I cannot find this number in any previous responses.
    In the last few days, I have tried my hands on Oracle Openscript tool to record the above scenario, but still I am getting the same problem, i.e instead of getting the correct response from the server for the AppsTCFServer requests, I am getting the message "X-session 7098.... not found - aborting ".
    I get this message whether I use LoadRunner tool or the OpenScript tool.
    Please help me solve this issue.
    Thanks & Regards,
    Soumya Mukherjee

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Help needed with creating a script

    This is what I try to achieve:
    Creating sequentially numbered files (any files) by dragging the original to a folder.
    It should work like this:
    drag a file ( i.e. myphoto.jpg) to a folder and the script attached to that folder would duplicate the file and number it (myphoto001.jpg)
    I can't get it to work... does anyone know of a ready-made script or is willing to advise on how-to?
    Thanks for feedback.

    Hello
    Here's some script you may try.
    (Copy code from this web page, not from subscribed email text, for I escaped some characters for posting.)
    Broadly speaking, it will do what you wish. But not exactly as you described.
    A few things to note.
    • It will rename file 'image1.jpg' to 'image1.001.jpg', e.g., (note period between 'image1' and '001') in order to make script simple.
    (If the file name is 'image1' without extension, it will be renamed to, e.g., 'image1.001._' by adding dummy extension '_' in order to make script simple and consistent)
    • It will move the file that is drag-n-dropped to the Folder Actioned folder A to an inner sub-folder B and rename the file in B. This is because renaming file in A will trigger the Folder Action, which detects renamed file as newly added file (under OSX), that is problematic.
    • If the following script is used as Folder Action, you'll have to drag-n-drop the file with option key down to copy it to the Folder Actioned folder. Without option key held down, the original file will be moved to the folder.
    (If the source and destination volumes are different, drag-n-drop will copy the file and there will be no need to use option key. E.g. If Folder Actioned folder resides in an external volume and original files are in an internal volume, simple drag-n-drop will copy the files.)
    Please see comments in script for more details.
    Hope this may help.
    H
    --SCRIPT
      Assumptions and behaviours:
        1) The destination folder B where renamed items are stored is in a root folder A.
          • A is determined as the folder where this Folder Action is attached or this droplet resides; and
          • B's name is given as property destinationFolderName in main().
        2) Target file F is moved to B and renamed such that -
          if original name of F is "P.R" (P = name stem, R = extension) and
          the max seq. number in name of the file(s) in B which has the same name stem and extension as F is M,
          F is renamed as "P.Q.R", where Q = M + 1.
          • Number format is given as property numberFormat in main().
          e.g. File named "name1.jpg" will be renamed to "name1.003.jpg",
            if file named "name1.002.jpg" in destination has the max seq. number with the same name stem and extension.
      Usage:
        1) As Folder Action,
          • save this as compiled script and attached it to folder A; and
          • drag-n-drop target files into A and it will move them in folder B and rename them as intended.
          (Use option-drag-n-drop (i.e. copy, not move) to keep the original file or it will be moved and renamed.)
        2) As droplet,
          • save this as application (or application bundle) in folder A; and
          • drag-n-drop target files onto the droplet and it will duplicate them to folder B and rename them as intended.
          (Exception. If target files are in A, they will be moved, not copied, to folder B.)
    on adding folder items to da after receiving aa
    main(da, aa)
    end adding folder items to
    on open aa
    tell application "Finder" to set da to container of (path to me) as alias
    main(da, aa)
    end open
    on main(ra, aa)
      alias ra : root folder
      list aa : items to be processed
    script o
    property destinationFolderName : "Renamed items"
    property numberFormat : "000" -- seq. number will be 001, 002, etc (if n > 999, use n as is)
    property nlen : count numberFormat
    property nmax : (10 ^ nlen - 1) as integer
    property xx : {}
    property astid : a reference to AppleScript's text item delimiters
    property astid0 : astid's contents
    property NL : return
    property errs1 : NL & NL & "This item will be left as is in: " & NL & NL
    property errs2 : NL & NL & "This item will be left as: " & NL & NL
    property btt1 : {"OK"}
    on decomp(s)
      string s : name string to decompose
      return list : {name stem, sequential number string, name extension}
      e.g. Given s : result
        "name1.001.jpg" : {"name1", "001", "jpg"}
        "name1.jpg" : {"name1", {}, "jpg"} -- [*]
        "name1" : {"name1", {}, {}}
        "name1..jpg" : {"name1", "", "jpg"} -- [*]
        "name1.name2.001.jpg" : {"name1.name2", "001", "jpg"}
        "name1.name2.jpg" : {"name1.name2", {}, "jpg"}
      [*] Note different meanings of {} and "" in result list
    local n, p, q, r
    try
    if s = "" then return {{}, {}, {}}
    set astid's contents to {"."}
    set s to s's text items
    tell s to set {n, r} to {reverse's rest's reverse, item -1}
    if n = {} then set {n, r} to {s, {}}
    tell n to set {p, q} to {reverse's rest's reverse, item -1}
    if p = {} then set {p, q} to {n, {}}
    try
    q as number
    set p to "" & p
    on error
    set {p, q} to {"" & (p & q), {}}
    end try
    set astid's contents to astid0
    on error errs number errn
    set astid's contents to astid0
    error "decomp():" & errs number errn
    end try
    return {p, q, r}
    end decomp
    on nextname(n)
      string n : source name
      property xx : names in pool
      property numberFormat, nlen, nmax: number format string, its length, max value respectively
      return string : new name with next sequential number
      e.g.
        Provided that n = "name1.jpg" and the name that has max seq. number
         with the same stem and extension as n in destination folder is "name1.005.jpg",
         resurt = "name1.006.jpg"
    local p, q, r, a, b, c, b1
    set {p, q, r} to decomp(n)
    if r = {} then set r to "_" -- give dummy extension if none (to handle it correctly)
    set b1 to 0
    repeat with x in my xx
    set x to x's contents
    if x starts with p then
    set {a, b, c} to decomp(x)
    if {a, c} = {p, r} then
    set b to 0 + b
    if b > b1 then set b1 to b
    end if
    end if
    end repeat
    set b1 to b1 + 1
    if b1 > nmax then
    return p & "." & b1 & "." & r
    else
    return p & "." & (numberFormat & b1)'s text -nlen thru -1 & "." & r
    end if
    end nextname
    try
    set da to (ra as Unicode text) & destinationFolderName & ":" as alias
    on error -- da not present
    tell application "Finder" to ¬
    set da to (make new folder at ra with properties {name:destinationFolderName}) as alias
    end try
    --set my xx to list folder da without invisibles -- this is faster but 'list folder' is deprecated in AS2.0.
    tell application "Finder" to set my xx to name of items of da as vector -- [1]
      [1] Finder (at least under OS9) returns [] (empty linked list) when returning empty list.
      This will cause error -10006 in 'set end of my xx to ...' statement, for linked list does not support it.
      The explicit 'as vector' will handle this case.
    repeat with a in aa
    set a to a's contents
    --set n to (info for a)'s name -- this is faster but 'info for' is deprecated under OSX10.5
    tell application "Finder" to set n to a's name
    if n = destinationFolderName then -- ignore it
    else
    set {n1, _step} to {nextname(n), 0}
    tell application "Finder"
    set sa to a's container as alias
    -- move or duplicate
    try
    if sa = ra then
    (* when run as Folder Action (or as droplet with items in ra) *)
    set a1 to (move a to da) as alias
    else
    (* when run as droplet with items outside ra *)
    set a1 to (duplicate a to da) as alias
    end if
    set _step to 1
    on error errs number errn
    (* name conflict, etc *)
    display dialog errs & " " & errn & errs1 & sa buttons btt1 ¬
    default button 1 with icon 2 giving up after 15
    end try
    -- rename
    try
    if _step = 1 then set {a1's name, _step} to {n1, 2}
    on error errs number errn
    (* name conflict, invalid name, etc; not probable but possible *)
    display dialog errs & " " & errn & errs2 & a1 buttons btt1 ¬
    default button 1 with icon 2 giving up after 15
    end try
    end tell
    if _step = 2 then set end of my xx to n1
    end if
    end repeat
    end script
    tell o to run
    end main
    --END OF SCRIPT
    Message was edited by: Hiroto (fixed typo)

  • Need help in Java Script

    i Need some help in Java Script,
    am using the following code :
    <script type="text/javascript">
    var newwindow;
    function poptastic(url)
    newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
    else {newwindow.close()}
    //     if (window.focus) {newwindow.focus()}
    </script>
    In HTML,
    thWorld Environment
    Day, June 5<sup>th</sup>,2005
    Am using onmouseover event, so that when my mouse in on the link, popup is opened....and when my mouse is out of the link, the new window should b closed....
    but according to the above code, the new window is opened but have to close it manually....
    Is there any other way to close the popup when my mouse is out of the link

    Prawn,
    This is not really a good way to make friends. With the cross posting and the posting in a wrong forum anyway thing you have going.
    Please kindly take your question to an appropriate JavaScript forum.
    Have a happy day.
    Cross post from http://forum.java.sun.com/thread.jspa?messageID=3797201

  • Need help in Shell Scripts

    Hi,
    I have a requirement need a help.
    Requirement states like this:
    I need to write a shell script through which I need to search a huge lines code and to find out following information :
    1. Total No of lines of the code
    2. No of DML statements (select,update,insert, delete) used like how many SELECT, How many UPDATE etc used in it.
    3. No of base apps tables referenced like How many tables starting with "CMF_" is present.
    4. No of procedure calls like how many procedures starting with "PROC_" used.
    Can anyone help me in this ? I need to script.
    My Unix version is :
    $ uname -a
    SunOS appsnet 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-4
    Thanks in advance
    [email protected]

    What you need here is a AWK script. This script will read the input as the source file (as command line
    argument or as standard input), and process each like of the file read to look for the different patterns
    in that line (looking for example if the line contans "SELECT " or "INSERT " etc...) and increment its
    corresponding count. At the end of the script in the END section you can get the number of lines with the
    NR awk inbuilt variable.
    Hope this helps.
    Hi,
    I have a requirement need a help.
    Requirement states like this:
    I need to write a shell script through which I need to search a huge lines code and to find out following information :
    1. Total No of lines of the code
    2. No of DML statements (select,update,insert, delete) used like how many SELECT, How many UPDATE etc used in it.
    3. No of base apps tables referenced like How many tables starting with "CMF_" is present.
    4. No of procedure calls like how many procedures starting with "PROC_" used.
    Can anyone help me in this ? I need to script.
    My Unix version is :
    $ uname -a
    SunOS appsnet 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-4
    Thanks in advance
    [email protected]

  • Help Needed with Apple Script

    I need a little help with Apple Script. I have been using a script for several months now, and all of a sudden it just stopped working. Here's the script"
    ============
    with timeout of 9999 seconds
    tell application "Finder"
    activate
    (* copy target file to another disk - to create a backup *)
    duplicate file "Daily.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* copy a 2nd target file to another disk - to create a backup *)
    duplicate file "Personal.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* now copy the 2nd target file to my iDisk *)
    duplicate file "Personal.dmg" of folder "Data Backup-Daily" of disk "MacHD 1" to folder "Documents" of disk "xxxxxx" replacing yes
    end tell
    end timeout
    ============
    In the above script, xxxxxx represents the name of my iDisk that is mounted in the Finder.
    Here's my issue - the above script worked fine until just recently. However, now the first two steps work fine, but I get this error message while trying to copy the file to my iDisk:
    "The operation could not be completed because some items had to be skipped. 'Personal.dmg'"
    Does anyone have any ideas on how I can fix this? I'm wondering if Mac OS 10.4.5 might be the culprit since this problem seems to have occurred shortly after I upgraded???
    Thanks,
    -AstraPoint

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

  • Help needed with the script

    Hi all, I am a novice in scripting...
    Could someone help me writing script for the following....
    Assume that there are 5 folders
    1 /etl/dev/work/wellness/enrl_rej/records
    2 /etl/dev/work/wellness/enrl_rej/metadata
    3 /etl/dev/work/wellness/enrl_rej/header
    4 /etl/dev/work/wellness/enrl_rej/hdrrej
    5 /etl/dev/work/wellness/enrl_rej/fields
    need to check if there is a file created in any of the above five locations,
    If the file Exists in Location 1 then
    send message with Subject 'process complete and attached are the rejected records' with the file in that folder as attachemt
    if file exists in Location 2 then
    send message with Subject 'Metadata Mismatch no of fields in detail didn't match' With the file in that folder as attachment
    If file exists in 3 then
    send message with Subject 'Problem with header file - File Rejected' With the file in that folder as attachment
    If file exists in 4 then
    Send message with subject 'the Percentage of rejects more than 3 percent File rejected' With the file in that folder as attachment
    If file exists in 5 then
    Send message with subject 'The header and detail count didn't match File rejected' With the file in that folder as attachment
    Thanks in advance !!!

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

Maybe you are looking for

  • I can log on Apple ID, however, impossible to activate iMessage and Facetime

    I definitely log on my Apple ID, make sure there is no problem about the username nor password and network connection; however; it's constantly a failure of activation for iMessage and Facetime with notification " Could not sign in. Please check your

  • Unchecking "Sync all unplayed episodes of... podcasts" DELETES THEM ALL?

    From iTunes 7.4 to 7.5, Apple has made a horrible thing even worse. Previously, if you left "Sync podcasts" checked on your home computer and plugged your iPod into your work computer, all your podcasts would be deleted because the iPod would turn on

  • Snow airport not being detected computers

    i have snow airport, a G4 lap top, G3 lap top, 17 inch white imac, and new 24 inch imac. i have had the airport working fine for years, i went on vacation and when i got home , no airport i can hook line directly to the modem(cable) and get internet(

  • Inventory - Unrestricted Use Stock

    Hi Friends ! At the BEx level. we restricted key figure to see the Unrestricted Use Stock Key Figure Name : TOTALSTCK 0STOCKTYPE = A SPECIAL STOCK INDICATOR = # Current Output : CALENDAR WEEK                       CALENDAR DAY                        

  • External USB CDROM-Unable to Install x86

    hi, i have intel machine with USB External CDROM, i am able to boot with the CDrom after the hardware deduction it's asking for BOOT a. Disk b. Network, i am unable to locate the CDDRIVE can any one give idea to install. please Regards, Ramesh