Powershell not merging files

Hi there,
I am literally hours new at Powershell scripting. I took on a project of developing a process that would scan a folder for presence of files matching a specific pattern:
fileprefix.MMDDYYY.[a-z].dat (please note regex [a-z] where a to z represents  presence of a single letter only followed by file extension .dat).
So far I was able to come up with the code below:
## List of files available in target folder:
## asodent.20140829.a.dat, asodent.20140829.b.dat, asophys.20140827.a.dat, asophys.20140827.b.dat, asophys.20140827.c.dat
$asodent = @(); $asoinst = @(); $asopharm = @(); $asophrm = @();$asophys = @()
$filetype = @()
$date = ("{0:yyyy-MM-dd}" -f (get-date)) -replace "-",""
## file suffixes
$asodent_sufx =@(); $asoinst_sufx =@(); $asopharm_sufx =@(); $asophrm_sufx =@(); $asophys_sufx =@()
## 1 - Code defining and assigning suffixes values here
Foreach($filename in $Filelist){
if ($filename -like "asodent.*")
$asodent += ,$filename
$asodent_sufx = -join ($asodent_sufx + (($filename -replace('\.','-')) -split "(-)")[4])
$filetype += ,(($filename -replace('\.','-')) -split "(-)")[0]
elseif ($filename -like "asoinst.*")
$asoinst += ,$filename
$asoinst_sufx = -join ($asoinst_sufx + (($filename -replace('\.','-')) -split "(-)")[4])
$filetype += ,(($filename -replace('\.','-')) -split "(-)")[0]
elseif ($filename -like "asopharm.*")
$asopharm += ,$filename
$asopharm_sufx = -join ($asopharm_sufx + (($filename -replace('\.','-')) -split "(-)")[4])
$filetype += ,(($filename -replace('\.','-')) -split "(-)")[0]
elseif ($filename -like "asophrm.*")
$asophrm += ,$filename
$asophrm_sufx = -join ($asophrm_sufx + (($filename -replace('\.','-')) -split "(-)")[4])
$filetype += ,(($filename -replace('\.','-')) -split "(-)")[0]
else{
$asophys += ,$filename;
$asophys_sufx = -join ($asophys_sufx + (($filename -replace('\.','-')) -split "(-)")[4])
$filetype += ,(($filename -replace('\.','-')) -split "(-)")[0]
## 2 - Determinig available file types to process based on process above (step 1)
$filetype = $filetype | select -uniq
## 3 - Stitching files together based on available types (see prior step)
Foreach ($type in $filetype)
if ($type = "asodent"){$suffix = $asodent_sufx}
elseif($type = "asoinst"){$suffix = $asoinst_sufx}
elseif($type = "asopharm_sufx"){$suffix = $asopharm_sufx}
elseif($type = "asophrm_sufx"){$suffix = $asophrm_sufx}
else{$suffix = $asophys_sufx}
$combinedfile = $type + "."+ $date + "." + $suffix + ".dat"
$string = $type +".*"
Get-ChildItem | Where-Object {(-not $_.PSIsContainer) -and $_.Name -like $string} |
% { Get-Content $_ -ReadCount 0 |
Add-Content .\$combinedfile }
cls
Write-Host "Process complete !"
Read-Host
I am having issues getting the script above to merge provided files (see script for details). It stops stitching them together after the first merge is processed. It does not complete the process by processing the second merge operation. Is there
anything I am missing that is causing the script to stop the process halfway?  (it shows "Process complete" even though it did not kick off the second stitching operation).
Any help would be truly appreciated

Hi Tshindaye,
The script below is for your reference, which can merge the files based on the same prefix and the date time and create a new file under D:\:
$dats=Get-ChildItem d:\ -Recurse|where{$_.name -match "\w.\d{8}.[a-z].dat"}|sort name #filter the files with the format and sort the files
$cont=@()
$match=""
for ($i = 0; $i -lt $dats.Count; $i++){
$m1=$dats[$i].basename.split(".")
if ($m1[0] -eq $match.split(".")[0] -and $m1[1] -eq $match.split(".")[1]){ #filter the merge files based on the same prefix and date time in filename.
$des+=$m1[2] # create the destination file path
$cont+=Get-Content $dats[$i].fullname -ReadCount 0
if ($dats[$i+1] -ne $null){
$m2=$dats[$i+1].basename.split(".")
if ($m2[0] -ne $match.split(".")[0] -and $m2[1] -ne $match.split(".")[1]){ # if the next file is not equal the reference file
$newfile = $des+".dat"
$cont|add-content $newfile # merge content to D:\aaa.20140828.ab.dat
$cont=@() }
else {$newfile = $des+".dat"
$cont|add-content $newfile # merge content to D:\aaa.20140828.ab.dat #if this file is the last one in the array $dats then merge these files
$cont=@()}
else {
$match = $dats[$i].basename
$des="D:\"+$match
$cont=Get-Content $dats[$i].fullname -ReadCount 0}
The script above maybe not the best one, however, this script can filter all the files based on the specific foramt under D:\, and merge these files to a new one like:
The filtered files under D:\:
D:\test\4\asodent.20140827.c.dat
D:\test\4\asodent.20140829.a.dat
D:\test\asodent.20140829.b.dat
D:\test\1\asophys.20140827.a.dat
D:\test\4\asophys.20140827.b.dat
D:\test\4\asophys.20140827.c.dat
The merged files:
D:\asodent.20140829.ab.dat
D:\asophys.20140827.abc.dat
If there is anything else regarding this issue, please feel free to post back.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support

Similar Messages

  • Release Management vNext Powershell Could not load file or assembly System.Management.Automation Version=3.0.0.0

    Hi,
    I'm running TFS2013.4 with a number of build servers and all working fine. 
    I'm also running Release Management with update 4 (12.0.31101.0) and am running into trouble when trying to run my first dummy release.
    I have setup my servers, stages, releases paths, components and release template (all vNext) with out issue.
    When I run my Release Template (Deploy Using PS/DSC) I'm getting the following error :-
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException:
    Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
    The system cannot find the file specified.
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.DisposeCurrentSession()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.Dispose()
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__11.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<CopyBuildsLocally>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<RunScript>d__0.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.InvokePlatform(String activityId, MachineSpecification machineSpecification, StorageSpecification storageSpecification, String scriptPath, String configurationPath,
    Dictionary`2 configurationVariables)
       at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.RunScript(DscComponent dscComponentParameters, String serverName, String userName, String password, String componentName, String scriptPath, String configurationPath,
    String useCredSecuritySupportProvider, String useHttps, String skipCACheck)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.Dsc.DscComponentInstaller.InvokeMethodByReflection(String methodArguments)
    I can't work out if my target machine (2008 R2 SP1) has a problem with WMA 3.0 or if the Release Template can't find the powershell script that I'm trying to call.  I figured that the relative path to the script could be wrong and have tried numerous
    iterations to no effect.  The error clearly points to a problem with WMA right?
    The target machine has .Net Framework 4.0, WMA Framework 3.0 and I can run Enter-PSSession to remote to it etc...
    Before I trash and rebuild my target machine I hoping someone may have some insight to my problem?
    Thanks in Advance
    Jason
    shroomie

    Daniel,
    The PS Script is taken from an MSDN blog and is fairly standard.  I'm sure it will run fine when executed, but I've not run it as it requires environment variables ($applicationPath) that will be present in the Release Management session calling it. 
    Here's the script :-
    configuration InstallModules
        param
            # Target nodes to apply the configuration
            [string[]]$NodeName = 'localhost',
            # Source Path for Modules
            [String]$SourcePath = "$applicationPath\Deploy\Modules",
            # Destination path for Modules
            [String]$DestinationPath = "$env:ProgramFiles\WindowsPowershell\Modules"
        Node $NodeName
            # Copy the Modules
            File ModuleContent
                Ensure          = "Present"
                SourcePath      = $SourcePath
                DestinationPath = $DestinationPath
                Recurse         = $true
                Type            = "Directory"
    InstallModules
    Thanks
    Jason
    shroomie

  • Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0 - Using powershell

    Hello guys!
    I'm trying to execute several cmdlets to get information about subscriptions in WAP admin site and im getting the following Error:
    Get-MgmtSvcPlan : Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral,
    PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
    At line:1 char:1
    + Get-MgmtSvcPlan -AdminUri https://127.0.0.1:30091 -Token $token -DisableCertific ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-MgmtSvcPlan], FileNotFoundException
        + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.WindowsAzure.Admin.PowerShell.GetPlan
    This is the command I typed in:
    $token = Get-MgmtSvcToken -Type 'Windows' -AuthenticationSite 'https://localhost:30072' -ClientRealm 'http://azureservices/AdminSite' -DisableCertificateValidation
    Get-MgmtSvcPlan -AdminUri https://127.0.0.1:30091 -Token $token -DisableCertificateValidation
    Any ideas?
    Dan.

    Are you running the latest release of the Azure Pack?  There were issues in previous versions affecting some of the cmdlets relating to subscriptions and plans.
    Also, do you happen to have Visual Studio on the same machine by any chance?  It could be that you installed a new version of it without knowing.
    If you're at the latest release of WAP and still having problems, you could always try downloading the json 4.5 package again from
    codeplex

  • Merge files not working

    Hi, we can no longer merge files, other than pdfs, into a single pdf. The system stalls out in converting.

    It's hard to say without looking at one of the files. If you can't post one somewhere, I'd be happy to take a look if you're free to email me: acroscript at gmail dot com

  • Command line compiler (rhcl.exe) adds on rogue full pathways into [Merge Files] of .hhp

    I'm using RH 9 and generating chm outputs on my Win 7 64-bit computer.
    I have a core chm help file and several sub chm helps that get merged into it.
    I have a batch file that regularly compiles our help files locally and then copies them into a common local directory. It then copies them up to a mapped network drive where they are picked up by the nightly build of our installer.
    The problem I have, is that the command line compiler (rhcl.exe) is adding on a full pathway for all the sub helps listed in the [Merge Files] section of the core help's .hhp file, causing these problems:
    1) First of all, the pathways are wrong. The pathway it puts on is from the location of my .xpj file of my core help project. The output directory for the compiler is actually sending all the helps to a different local directory.
    2) These need to be relative, and should not have full pathways. The full pathways make it so that when I click on a subhelp TOC entry that subhelp's topic opens up in an entirely different window instead of merged into the core help's window. (See #13 on Peter's helpful site here about the problem with absolute paths: http://www.grainge.org/pages/authoring/rh9/using_rh9.htm)
    Here' what I want it to look like (the good):
    [MERGE FILES]
    pcdmisportable.chm
    pcdmistutor.chm
    pcdmisvision.chm
    pcdmislaser.chm
    pcdmiscmm.chm
    pcdmisUJB.chm
    pcdbasic.chm
    toolkitmodulesvwmp.chm
    pcdmisdci.chm
    toolkitmodules.chm
    pcdmisnc.chm
    pcdmisip.chm
    toolkitmodulesblade.chm
    pcdmisregistry.chm
    pcdmisfixturing.chm
    Here's what it looked like after the command line compile (the bad and the ugly):
    [MERGE FILES]
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisportable.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmistutor.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisvision.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmislaser.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmiscmm.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisUJB.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdbasic.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodulesvwmp.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisdci.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodules.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisnc.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisip.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\toolkitmodulesblade.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisregistry.chm
    d:\hg\pcdmisqa\pcdlrn\help\corehelp\pcdmisfixturing.chm
    I've done the following ....
    I've checked my .xpj file and they have relative paths only.
    I've deleted my .cpd file.
    I've removed chm references from my rhbag.apj.
    ... and the hhp file still gets modified with pathways to my core project
    directory tacked on:
    It's strange; because if I compile without the command line, by opening the project and running the generation inside of RH, I don't get the problem where it re-writes the [Merge Files] section with the pathnames.
    Any ideas on where are these rogue full pathways coming from and how I can fix it? Or is it just a bug with the command line version of the compiler that Adobe will need to fix?

    I don't use command line generation but to the best of my knowledge, this has not been fixed.
    Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • When I download a long album from ITunes containing like 20-30 tracks, why does ITunes sometimes segregate one track and create a separate album out of it. I can merge the track into the other tracks on a playlist, but I can not merge the 2 albums.

    When I download an opera album with lets day 40 songs (tracks). Why does iTunes create one album of tracks lets say 1 through 22, skip 23 and then 24 through 40. Then a separate album with track 23 is created. I can merge them together in a playlist but not as a single album. I go into the info under the file menu for each and make sure the information is the same but they still will not merge.

    I'm not sure why this happens, but I found a workaround. Below the album title it will list the artist(s). The issue seems to happen when there are multiple artists. For example, an Album titled "Over the Sea to Skye" has The Chieftains and James Galway as artists. Some tracks (for whatever reason) will list only one of these and result in the playlist showing what appears to be multiple albums. You can click on the artists and it will highlight. Paste in what is appearing on the other "albums" and it will then show as one:
    Hope that is somewhat clear enough to help. Doesn't fix whatever the issue is but it is a workaround. For me this is only happening with CD's that I have imported.

  • Can you renumber pages in a merged file

    I often merge files from word and exel and other programs.  Can I renumber this new file

    You cannot delete pages in Reader on any platform. Reader is a reading app not an editing app.
    You can delete pages in Acrobat on Mac or Windows.

  • [oracle 10.2.0.4] My view is not merged

    Hi,
    I have a view which is not merged by the CBO. I mean the CBO decides to apply the filter predicate after the execution of the view.
    Here is the definition of the view
    CREATE OR REPLACE VIEW VUNSCP AS
    SELECT X.DASFM,X.COINT,X.NUCPT,X.RGCOD,X.RGCID,X.CODEV,X.CTDEV,X.CDVRF,X.TXCHJ,X.MTNLV,X.MTVDP,
           LEAD(X.MTNLV+X.MTVDP,1) OVER (PARTITION BY X.COINT,X.NUCPT,X.CDVRF,X.CTDEV,X.CODEV,X.RGCOD,X.RGCID  ORDER BY X.DASFM DESC),
           SUM(X.MTNLV) OVER (PARTITION BY X.COINT,X.CODEV,X.RGCOD)
    FROM SFMCPT XThe query is:
    explain plan for
    select * from VUNSCP where dasfm='30-apr-10';
    select * from table(dbms_xplan.display);
    Plan hash value: 2545326530
    | Id  | Operation           | Name   | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |        |    13M|  1529M|       |   195K  (1)| 00:39:11 |
    |*  1 |  VIEW               | VUNSCP |    13M|  1529M|       |   195K  (1)| 00:39:11 |
    |   2 |   WINDOW SORT       |        |    13M|   646M|  1996M|   195K  (1)| 00:39:11 |
    |   3 |    TABLE ACCESS FULL| SFMCPT |    13M|   646M|       | 27991   (4)| 00:05:36 |
    Predicate Information (identified by operation id):
       1 - filter("DASFM"='30-apr-10')You can see that a FTS is performed on SFMCPT (>1 million of rows) and that the filter predicate is applied only after the view has been instantiated.
    So the index on DASFM can't be used.
    This query is returning about 30 000 rows. We see on the plan that the CBO is mistaken beacause it reckons that there's going to be 13M of rows.
    If I add the filter predicate directly on the view'script I get the correct plan:
    explain plan for
    SELECT X.DASFM,X.COINT,X.NUCPT,X.RGCOD,X.RGCID,X.CODEV,X.CTDEV,X.CDVRF,X.TXCHJ,X.MTNLV,X.MTVDP,
           LEAD(X.MTNLV+X.MTVDP,1) OVER (PARTITION BY X.COINT,X.NUCPT,X.CDVRF,X.CTDEV,X.CODEV,X.RGCOD,X.RGCID ORDER BY X.DASFM DESC),
           SUM(X.MTNLV) OVER (PARTITION BY X.COINT,X.CODEV,X.RGCOD)
    FROM SFMCPT X where dasfm='30-apr-10';
    select * from table(dbms_xplan.display);
    Plan hash value: 1865390099
    | Id  | Operation                    | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |         | 14357 |   729K| 13271   (1)| 00:02:40 |
    |   1 |  WINDOW SORT                 |         | 14357 |   729K| 13271   (1)| 00:02:40 |
    |   2 |   TABLE ACCESS BY INDEX ROWID| SFMCPT  | 14357 |   729K| 13269   (1)| 00:02:40 |
    |*  3 |    INDEX RANGE SCAN          | SFMCPT1 | 14357 |       |    67   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - access("DASFM"='30-apr-10')The index is now used and the rows estimated seem closer to the actual rows.
    I tried several things:
    - disabling the "OPTIMZER_COST_BASED_TRANSFORMATION" hidden parameter
    - use the MERGE hint
    - alter session set optimizer_features_enable = '9.2.0.8';
    All these workarounds don't work => I'm still getting the bad execution plan.
    According to Jonathan LEWIS' s book the 9i optimzer always merge views But here even if I set the optimizer_features_enable parameter to 9i the view is not merged.
    It's sure that the issue is due to the analytical functions but why ?
    Can please someone help me to understand what is going on ?
    Edited by: Ahmed AANGOUR on 5 mai 2010 08:41

    here is the 10053 trace file:
    /oracle/app/oracle/admin/UBIXPROD/udump/ubixprod_ora_24971_10053_optimizer_trace.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /oracle/app/oracle/10.2.0
    System name:    Linux
    Node name:      lin-ubi-test1.ubitrade.com
    Release:        2.6.9-78.0.1.ELsmp
    Version:        #1 SMP Tue Jul 22 18:01:05 EDT 2008
    Machine:        x86_64
    Instance name: UBIXPROD
    Redo thread mounted by this instance: 1
    Oracle process number: 26
    *** 2010-05-04 12:14:51.450
    *** ACTION NAME:() 2010-05-04 12:14:51.450
    *** MODULE NAME:([email protected] (TNS V1-V3)) 2010-05-04 12:14:51.450
    *** SERVICE NAME:(SYS$USERS) 2010-05-04 12:14:51.450
    *** SESSION ID:(135.1512) 2010-05-04 12:14:51.450
    Registered qb: SEL$1 0xa9e139a8 (PARSER)
      signature (): qb_name=SEL$1 nbfros=1 flg=0
        fro(0): flg=5 objn=297481 hint_alias="VUNSCP"@"SEL$1"
    Registered qb: SEL$2 0xa9e0bdd0 (PARSER)
      signature (): qb_name=SEL$2 nbfros=1 flg=0
        fro(0): flg=4 objn=265023 hint_alias="X"@"SEL$2"
    Predicate Move-Around (PM)
    PM: Considering predicate move-around in SEL$1 (#0).
    PM:   Checking validity of predicate move-around in SEL$1 (#0).
    CBQT: Validity checks failed for 3xakq94fcx4td.
    CVM: Considering view merge in query block SEL$1 (#0)
    CVM:   Checking validity of merging SEL$2 (#0)
    CVM: Considering view merge in query block SEL$2 (#0)
    CVM:     CVM bypassed: Window functions in this view
    CBQT: Validity checks failed for 3xakq94fcx4td.
    Subquery Unnest
    SU: Considering subquery unnesting in query block SEL$1 (#0)
    Set-Join Conversion (SJC)
    SJC: Considering set-join conversion in SEL$1 (#0).
    Set-Join Conversion (SJC)
    SJC: Considering set-join conversion in SEL$2 (#0).
    Predicate Move-Around (PM)
    PM: Considering predicate move-around in SEL$1 (#0).
    PM:   Checking validity of predicate move-around in SEL$1 (#0).
    PM:   Passed validity checks.
    FPD: Considering simple filter push in SEL$1 (#0)
    FPD:   Current where clause predicates in SEL$1 (#0) :
             "VUNSCP"."DASFM"='30-apr-10'
    kkogcp: try to generate transitive predicate from check constraints for SEL$1 (#0)
    predicates with check contraints: "VUNSCP"."DASFM"='30-apr-10'
    after transitive predicate generation: "VUNSCP"."DASFM"='30-apr-10'
    finally: "VUNSCP"."DASFM"='30-apr-10'
    JPPD:     JPPD bypassed: View not on right-side of outer join
    FPD: Considering simple filter push in SEL$2 (#0)
    FPD:   Current where clause predicates in SEL$2 (#0) :
             apadrv-start: call(in-use=2936, alloc=16344), compile(in-use=38784, alloc=44568)
    kkoqbc-start
                : call(in-use=2936, alloc=16344), compile(in-use=40472, alloc=44568)
    kkoqbc-subheap (create addr=0x2a9740c1f0)
    Current SQL statement for this session:
    EXPLAIN PLAN FOR select * from VUNSCP where dasfm='30-apr-10'
    Peeked values of the binds in SQL statement
    PARAMETERS USED BY THE OPTIMIZER
      PARAMETERS WITH ALTERED VALUES
      _pga_max_size                       = 262140 KB
      cursor_sharing                      = similar
      _optimizer_cost_based_transformation = off
    Column Usage Monitoring is ON: tracking level = 1
    QUERY BLOCK TEXT
    EXPLAIN PLAN FOR select * from VUNSCP where dasfm='30-apr-10'
    QUERY BLOCK SIGNATURE
    qb name was generated
    signature (optimizer): qb_name=SEL$2 nbfros=1 flg=0
      fro(0): flg=0 objn=265023 hint_alias="X"@"SEL$2"
    SYSTEM STATISTICS INFORMATION
      Using NOWORKLOAD Stats
      CPUSPEED: 2503 millions instruction/sec
      IOTFRSPEED: 4096 bytes per millisecond (default is 4096)
      IOSEEKTIM: 10 milliseconds (default is 10)
    BASE STATISTICAL INFORMATION
    Table Stats::
      Table: SFMCPT  Alias:  X
        #Rows: 13036040  #Blks:  122880  AvgRowLen:  358.00
    Index Stats::
      Index: SFMCPT1  Col#: 2 3 4 8 5 7 118
        LVLS: 2  #LB: 58758  #DK: 13013072  LB/K: 1.00  DB/K: 1.00  CLUF: 11983641.00
      Index: SFMCPT2  Col#: 1
        LVLS: 2  #LB: 30031  #DK: 13483987  LB/K: 1.00  DB/K: 1.00  CLUF: 2410599.00
      Index: SFMCPT3  Col#: 3 4 8 5 7 2 118
        LVLS: 2  #LB: 39065  #DK: 13013072  LB/K: 1.00  DB/K: 1.00  CLUF: 12583891.00
    SINGLE TABLE ACCESS PATH
      BEGIN Single Table Cardinality Estimation
      Table: SFMCPT  Alias: X
        Card: Original: 13036040  Rounded: 13036040  Computed: 13036040.00  Non Adjusted: 13036040.00
      END   Single Table Cardinality Estimation
      Access Path: TableScan
        Cost:  27991.05  Resp: 27991.05  Degree: 0
          Cost_io: 26881.00  Cost_cpu: 33334822147
          Resp_io: 26881.00  Resp_cpu: 33334822147
      Best:: AccessPath: TableScan
             Cost: 27991.05  Degree: 1  Resp: 27991.05  Card: 13036040.00  Bytes: 0
    OPTIMIZER STATISTICS AND COMPUTATIONS
    GENERAL PLANS
    Considering cardinality-based initial join order.
    Permutations for Starting Table :0
    Join order[1]:  SFMCPT[X]#0
    WiF sort
        SORT resource      Sort statistics
          Sort width:         766 Area size:     1048576 Max Area size:   134215680
          Degree:               1
          Blocks to Sort:  108528 Row size:           68 Total Rows:       13036040
          Initial runs:         7 Merge passes:        1 IO Cost / pass:      58786
          Total IO sort cost: 167314      Total CPU sort cost: 16584848017
          Total Temp space used: 2093966000
    Best so far: Table#: 0  cost: 195857.3183  card: 13036040.0000  bytes: 677874080
    (newjo-stop-1) k:0, spcnt:0, perm:1, maxperm:80000
    Number of join permutations tried: 1
        SORT resource      Sort statistics
          Sort width:         766 Area size:     1048576 Max Area size:   134215680
          Degree:               1
          Blocks to Sort:  108528 Row size:           68 Total Rows:       13036040
          Initial runs:         7 Merge passes:        1 IO Cost / pass:      58786
          Total IO sort cost: 167314      Total CPU sort cost: 16584848017
          Total Temp space used: 2093966000
    Final - All Rows Plan:  Best join order: 1
      Cost: 195857.3183  Degree: 1  Card: 13036040.0000  Bytes: 677874080
      Resc: 195857.3183  Resc_io: 194195.0000  Resc_cpu: 49919670164
      Resp: 195857.3183  Resp_io: 194195.0000  Resc_cpu: 49919670164
    kkoipt: Query block SEL$2 (#0)
    ******* UNPARSED QUERY IS *******
    SELECT "X"."DASFM" "DASFM","X"."COINT" "COINT","X"."NUCPT" "NUCPT","X"."RGCOD" "RGCOD","X"."RGCID" "RGCID","X"."CODEV" "CODEV","X"."CTDEV" "CTDEV","X"."CDVRF" "CDVRF","X"."TXCHJ" "TXCHJ","X"."MTNLV" "MTNLV","X"."MTVDP" "MTVDP",DECODE(COUNT(*) OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD","X"."CTDEV","X"."NUCPT","X"."CDVRF","X"."RGCID" ORDER BY "X"."DASFM" DESC  ROWS  BETWEEN 1 FOLLOWING  AND 1 FOLLOWING ),1,FIRST_VALUE("X"."MTNLV"+"X"."MTVDP") OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD","X"."CTDEV","X"."NUCPT","X"."CDVRF","X"."RGCID" ORDER BY "X"."DASFM" DESC  ROWS  BETWEEN 1 FOLLOWING  AND 1 FOLLOWING ),NULL) "MTUNS",SUM("X"."MTNLV") OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD") "MTNLI" FROM "SFMCPT" "X"
    kkoqbc-subheap (delete addr=0x2a9740c1f0, in-use=11856, alloc=12408)
    kkoqbc-end
              : call(in-use=57760, alloc=81816), compile(in-use=41096, alloc=44568)
    kkoqbc-start
                : call(in-use=57760, alloc=81816), compile(in-use=41184, alloc=44568)
    kkoqbc-subheap (create addr=0x2a9746b058)
    QUERY BLOCK TEXT
    select * from VUNSCP where dasfm='30-apr-10'
    QUERY BLOCK SIGNATURE
    qb name was generated
    signature (optimizer): qb_name=SEL$1 nbfros=1 flg=0
      fro(0): flg=1 objn=297481 hint_alias="VUNSCP"@"SEL$1"
    SYSTEM STATISTICS INFORMATION
      Using NOWORKLOAD Stats
      CPUSPEED: 2503 millions instruction/sec
      IOTFRSPEED: 4096 bytes per millisecond (default is 4096)
      IOSEEKTIM: 10 milliseconds (default is 10)
    BASE STATISTICAL INFORMATION
    Table Stats::
      Table: VUNSCP  Alias: VUNSCP  (NOT ANALYZED)
        #Rows: 0  #Blks:  0  AvgRowLen:  0.00
    OPTIMIZER STATISTICS AND COMPUTATIONS
    GENERAL PLANS
    Considering cardinality-based initial join order.
    Permutations for Starting Table :
    Join order[1]:  VUNSCP[VUNSCP]#0
    Best so far: Table#: 0  cost: 195857.3183  card: 13036040.0000  bytes: 1603432920
    (newjo-stop-1) k:0, spcnt:0, perm:1, maxperm:80000
    Number of join permutations tried: 1
    Final - All Rows Plan:  Best join order: 1
      Cost: 195857.3183  Degree: 1  Card: 13036040.0000  Bytes: 1603432920
      Resc: 195857.3183  Resc_io: 194195.0000  Resc_cpu: 49919670164
      Resp: 195857.3183  Resp_io: 194195.0000  Resc_cpu: 49919670164
    kkoipt: Query block SEL$1 (#0)
    ******* UNPARSED QUERY IS *******
    SELECT "VUNSCP"."DASFM" "DASFM","VUNSCP"."COINT" "COINT","VUNSCP"."NUCPT" "NUCPT","VUNSCP"."RGCOD" "RGCOD","VUNSCP"."RGCID" "RGCID","VUNSCP"."CODEV" "CODEV","VUNSCP"."CTDEV" "CTDEV","VUNSCP"."CDVRF" "CDVRF","VUNSCP"."TXCHJ" "TXCHJ","VUNSCP"."MTNLV" "MTNLV","VUNSCP"."MTVDP" "MTVDP","VUNSCP"."MTUNS" "MTUNS","VUNSCP"."MTNLI" "MTNLI" FROM  (SELECT "X"."DASFM" "DASFM","X"."COINT" "COINT","X"."NUCPT" "NUCPT","X"."RGCOD" "RGCOD","X"."RGCID" "RGCID","X"."CODEV" "CODEV","X"."CTDEV" "CTDEV","X"."CDVRF" "CDVRF","X"."TXCHJ" "TXCHJ","X"."MTNLV" "MTNLV","X"."MTVDP" "MTVDP",DECODE(COUNT(*) OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD","X"."CTDEV","X"."NUCPT","X"."CDVRF","X"."RGCID" ORDER BY "X"."DASFM" DESC  ROWS  BETWEEN 1 FOLLOWING  AND 1 FOLLOWING ),1,FIRST_VALUE("X"."MTNLV"+"X"."MTVDP") OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD","X"."CTDEV","X"."NUCPT","X"."CDVRF","X"."RGCID" ORDER BY "X"."DASFM" DESC  ROWS  BETWEEN 1 FOLLOWING  AND 1 FOLLOWING ),NULL) "MTUNS",SUM("X"."MTNLV") OVER ( PARTITION BY "X"."COINT","X"."CODEV","X"."RGCOD") "MTNLI" FROM "SFMCPT" "X") "VUNSCP" WHERE "VUNSCP"."DASFM"='30-apr-10'
    kkoqbc-subheap (delete addr=0x2a9746b058, in-use=11544, alloc=12408)
    kkoqbc-end
              : call(in-use=63208, alloc=81816), compile(in-use=41688, alloc=44568)
    apadrv-end: call(in-use=63208, alloc=81816), compile(in-use=42872, alloc=44568)
    sql_id=3xakq94fcx4td.
    Current SQL statement for this session:
    EXPLAIN PLAN FOR select * from VUNSCP where dasfm='30-apr-10'
    ============
    Plan Table
    ============
    ---------------------------------------+-----------------------------------+
    | Id  | Operation            | Name    | Rows  | Bytes | Cost  | Time      |
    ---------------------------------------+-----------------------------------+
    | 0   | SELECT STATEMENT     |         |       |       |  191K |           |
    | 1   |  VIEW                | VUNSCP  |   12M | 1529M |  191K |  00:39:11 |
    | 2   |   WINDOW SORT        |         |   12M |  646M |  191K |  00:39:11 |
    | 3   |    TABLE ACCESS FULL | SFMCPT  |   12M |  646M |   27K |  00:06:36 |
    ---------------------------------------+-----------------------------------+
    Predicate Information:
    1 - filter("DASFM"='30-apr-10')Edited by: Ahmed AANGOUR on 5 mai 2010 08:43

  • Gaps In between Letters Of Full Words When Merging Files To Single .pdf Adobe Acrobat 9.3.4 Pro

    Setup
    Windows XP SP3 + Office 2007 Pro
    Also, tested on  Windows 7 64x + Office 2007 Pro
    Same Issues.
    The steps used are:
    1) Open Adobe Acrobat 9.0
    2) Click File
    3) Combine
    4) Merge Files into a single PDF
    5) Add Files (select the required files)
    6) Combine Files (which then processes and creates single PDF)
    Results:
    A single PDF is then created and as mentioned is occasionally affected by this issue of random gaps appearing within words.
    Expected results:
    A single PDF with the same formatting and layout as the original files.
    I can not post screenshots of this issue for sercurity concerns but here is an example.
    From my word document / or pdf (either way)
    Drawing Contents
    Fabrication Notes
    Bill of Materials
    Assembly Notes
    Top Assembly Drawing
    Bottom Assembly Drawing
    Schematics
    After the Merging of the files
    Drawing Contents
    Fabri ation  ote
    Bi  of Materia
    A emb y  ote
    Top A  emb y Drawing
    Bottom A  emb y Drawing
    S hemati
    Seems like "C" "S" "N" "L"  's are missing
    EDIT: isn't constant, so its just not these letters its random
    Note: Tested this issue with Acrobat 8, and did not have this issue.
    Please Help
    Message was edited by: Bitzan

    Thanks for the response.
    I have checked though the Word documents that were used in the most recent merge. They don't have any spaces at these areas or strange formatting. I turned on the Show/Hide option to confirm if there was anything odd but I could not see anything. The formatting (Ctrl+D) shows the default font Arial, Regular, font 12.
    The interesting thing is that if it occurs and attempt another file merge the gaps are no longer there. Which makes me think this is unlikely to be the documents and formatting being used and more likely to be a bug in Adobe Acrobat.
    Is there anything else that might be of use to know?

  • Gaps inbetween letters of full words when Merging files to single PDF (Adobe Acrobat 9.0 Standard)

    I've raised a Bug Report although it says that I may not be contacted so thought someone else might have encountered this issue and hopefully knows what causes it and how to fix. Any advise would be greatly appreciated. Heres a copy of the Bug Report details...
    ******BUG******
    Concise problem statement:
    An intermitent issue is occuring when merging multiple files into a single PDF in Adobe Acrobat 9.0 Standard, the resulting PDF file has gaps inbetween the letters of actual words. For example the word "document" may appear in part of the PDF as "doc ument". This seems to affect various parts of the final PDF file.
    Setup: Windows XP SP2, Adobe Acrobat 9.0, Microsoft Office Standard Edition 2003
    Steps to reproduce bug:
    I am currently unable to replicate the issue on demand but this has happened three times since installing Adobe Acrobat 9.0 a month ago. The most recent occurance happened when merging 6 Microsoft Word Documents. It is a real problem due to the fact that every PDF created needs to be carefully checked and in some cases these PDFs have hundreds of pages.
    The steps used are:
    1) Open Adobe Acrobat 9.0
    2) Click File
    3) Combine
    4) Merge Files into a single PDF
    5) Add Files (select the required files)
    6) Combine Files (which then processes and creates single PDF)
    Results:
    A single PDF is then created and as mentioned is occasionally affected by this issue of random gaps appearing within words.
    Expected results:
    A single PDF with the same formatting and layout as the original files.

    Thanks for the response.
    I have checked though the Word documents that were used in the most recent merge. They don't have any spaces at these areas or strange formatting. I turned on the Show/Hide option to confirm if there was anything odd but I could not see anything. The formatting (Ctrl+D) shows the default font Arial, Regular, font 12.
    The interesting thing is that if it occurs and attempt another file merge the gaps are no longer there. Which makes me think this is unlikely to be the documents and formatting being used and more likely to be a bug in Adobe Acrobat.
    Is there anything else that might be of use to know?

  • How to change default HDR toning with 32 bit smart object - 16 bit, when not merging

    Suppose I have just done this:
    Opened a RAW file as a 16-bit smart object through camera raw, so I can easily go back and change raw parameters if needed
    Converted the document to 32 bit mode
    Set 32-bit preview mode to Highlight Compression
    Added a Curves layer and fiddled with the sliders until satisfied
    So far so good.
    Now what I would like to do is envelope/convert these two layers into a smart object, and then change the mode to 16 bit with a Highlight compression method, but WITHOUT merging the smart object. Merging leaves me with one flattened non-smart layer. Obviously I don't want to merge, because all the smartness of the previous (32 bit) smart object, and I cannot go back to the equally smart raw file.
    For a demonstration: http://tv.adobe.com/watch/russell-brown-at-photoshop-world-2011-orlando/smart-object-32-bi t-hdr-editing-techniques/
    After chosing "merge layers", an impressive dialog box is displayed with 4 toning methods. When NOT merging, nothing is displayed, and Exposure/Gamma seems to be silently used. Fine in some cases, but not now. It seems one cannot change that, or choose another one of the 4 methods. But perhaps someone has figured out a way to "will" it in another direction?
    Thanks for your help!

    Yes sorry about that, I may have been a bit brief indeed:
    I'm using Photoshop CS5, x64, latest patch (12.0.4). And ACR 6.4.1 to open a Raw file as a smart object in Photoshop.
    Step 2: correct, I used Image->Mode->32bit
    Step 3: I set the 32bit preview mode by clicking View->32-bit Preview Options->Highlight Compession
    Setp 4: I'm mistaken here, I added a Levels layer, because Curves are indeed unavailable in 32 bit mode.
    While I'm at it:
    Step 5: Then, I would select these 2 layers in the layers pane and convert them to a smart object (right click in layers pane -> convert to smart object)
    Step 6: Next step would be Image->Mode->16-bit. It would then ask to have the layers merged or not before changing bit depth. Only if you choose merge, the HDR toning dialog box would appear, from which you can select Exposure&Gamma, Highlight Compession, Local Adaptation and so on.
    I don't want to merge, because it will destroy the smart object containing the Levels layer and the original raw file (in a smart object)
    So I select "Don't merge". It doesn't show the HDR toning dialog, and goes straight in 16-bit mode. But what toning mode did it choose? By comparing the result you get when not merging, to the result when one does merge, it appears a default toning mode of Exposure&gamma is chosen. That's not what I want, because I would like to have Highlight Compression.
    But where can I change this behaviour?

  • Multiple indesign files for product brochure one data merge file

    I have multiple indesign files for product brochure and there are price changes for various products.
    attached is a screen shot of the folder where all the indesign files are located as you can see each one has been laid out as a spread.
    Rather than opening each individual indesign file to amend prices can i quickly? or is there a way of compliling all documents into one file and quickly updating the price with the data merge file.
    thanks in advance.

    Absolutely not.
    (1)     PDF/VT-1 files must also be PDF/X-4 files. The “create PDF via distillation of PostScript” method precludes this since PostScript supports neither live transparency nor color management.
    (2)     The efficiencies of PDF/VT-1 require use of Forms XOjects and Image XObjects in the PDF file. That requires direct PDF creation that you get from PDF export. This is not available via any route that uses stink'in PostScript as an intermediary.
    (3)     Adobe most strongly endorses PDF creation from InDesign via the export function, not printing to PostScript and distilling. Such PostScript is optimized strictly for printing and not for PDF file creation.
              - Dov

  • Robohelp HTML command-line utility overwrites merged files in .hhp file with absolute paths. Any way to prevent this?

    I have a Robohelp 11 HTML project which uses merged CHM files. I have a help build script which compiles this project using the RH command-line utility. Whenever this runs, RH overwrites the names of the merged CHM files in the .hhp file to use absolute paths (even if the .hhp file is read-only!). I've searched Adobe forums and this appears to be a RH bug. In my case, it doesn't stop the project performing the merge, but it looks like it causes problems when searching the resultant parent CHM (topics matching the search simply don't show up in child projects), as the search cannot necessarily find the merged files referenced in the .hhp when someone performs the search on a different machine. I notice that if I compile via the RH UI, the .hhp entries are not overwritten. So, a workaround is to do the build manually. However, we'd like to automate our help build. Is there any way to prevent the command-line compiler overwriting the merge file entries in the .hhp?

    This was a problem with Rh9, see Item 13 at Using RoboHelp 9
    I haven't seen it reported since but maybe something at that link will help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Merge Files In Single PDF

    I have Acrobat 9 Pro (Windows XP) and am new at using the progam.
    I had merged a few jpegs into a single PDF file but the originals did not remain in its original location in my computer.
    Would someone be able to tell me if this is normal for this program?
    Is there a revert feature to get the originals back?
    Any help is appreciated. Thanks.
    jean

    I added files to the "Merge files into single PDF" menu and then clicked "Combine files". Went back to check in computer file and noticed the originals were not there. Would "combine files" mean deleting them? as I did not click any other button.
    I was able to retrieve my jpegs from the single PDF file by exporting them back to its destination, as Bill said, so I have my originals back.
    Thanks for your help.
    jean

  • Unable to combine opened PDF files to create onr merged file...

    Hi:
    Using acrobat 8 under Vista.
    In version 7 of Acrobat Pro, I was able to merge all of my opened PDFs documents to create a single PDF. I do not see that option in Acrobat 8, is it gone? Now I have to insert every page in another one to merge the files. What am I missing?
    Thanks,
    Luke

    If you do a search of the help in Acrobat with "merge files" you come up with at least 2 different solutions.

Maybe you are looking for

  • How can I burn songs in a certain order onto a cd?

    I want to burn a group of songs in a certain order onto a cd. ITunes seems to pick it's own order.

  • CUP: Notification Mail after Role Approval

    Dear SAP Experts We are running GRC AC 5.3 SP11.2  and facing a problem with the CUP workflow behavior. Each time we change a existing user in the system and assign him at least two new roles with diffrent role owners, we get some problems at the rol

  • Problem of downloading a specific image

    Hi , I am using AFNetworking to download the image of url by calling the method setImageWithURLRequest:requestWithURL:success:failure. There is an error just only with the image with above url. The details of the error message is the below: http://im

  • How to bring in a swc ?

    i want to bring in FLVPlayback.swc and .AS to the library path, i added the swc, i added the directory containing fl and below folders for the .AS file(s). the import stmt and the object =new FLVPlayback();  works, but when i do an addChild() it says

  • Everything disappears when iMovie crashes??

    It's not the first time that iMovie crashes while I'm doing a movie... This time I made a lot of things and then suddenly a crash and now everything is gone??? How can I get it back? I was just putting the video together, didn't try to create a file