Search found 30 matches

by PAULOM
Tue Dec 03, 2013 4:26 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

After corrections, i have 3 outputs files with no extension :oops:

First file : Main

2441069
20235922

I have only the second line for "Main" but in column, why?

How to have my two lines of data for "Main" and on-line and not in columns ?

Thank a lot.
by PAULOM
Tue Dec 03, 2013 2:21 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

Hi Chulett,
I don't understand very well what I have to make.
by PAULOM
Tue Nov 26, 2013 11:57 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

@eph, sorry i'm on Datastage Server 8.5 and not PX
@ArndW, thanks for your response, Can u please explain step by step how to use this routine in my requirement.

Thanks and Regards,
by PAULOM
Tue Nov 26, 2013 4:21 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

Hello,

Thank you for your answers. I am not going to follow your recommendations because I don't feel able of making it technically.

I know that it is possible to make it with a routine (and it was on this point that I wanted to know more about it) more a loop on the job.

Thanks to you.
by PAULOM
Mon Nov 25, 2013 6:43 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

No, I don't know the number and the names of ID_SESSION...
by PAULOM
Mon Nov 25, 2013 4:49 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

Thanks for your answer, for example : My entry file : NAME|SURNAME|ID_SESSION|... PAUL|BOB|TEST PIT|BRAD|TEST BILLY|JOHN|TEST2 At final, I want 2 files with the first : PAUL|BOB|TEST PIT|BRAD|TEST And the second : BILLY|JOHN|TEST2 I don't how to do with the Transformer, i think i do make a routine t...
by PAULOM
Mon Nov 25, 2013 3:07 am
Forum: General
Topic: Routine to split files
Replies: 16
Views: 8877

Routine to split files

Hello,

I have to create a routine DataStage which allows me to splitter my file in entry to so much file as ID (parameter) in the first file.

Is it possible to make that with a routine?

Thank you.
by PAULOM
Tue Aug 06, 2013 3:33 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

I try with one "Execute Command" : cd MYDIRECTORY ; or && for /F "delims=" %A in ('dir /b *.csv') do if %~zA LSS 250 del "%~dpnxA" It doesn't work. This command /F "delims=" %A in ('dir /b *.csv') do if %~zA LSS 250 del "%~dpnxA" doesn't work...
by PAULOM
Tue Aug 06, 2013 1:58 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

Hi, My JOB : http://s7.postimg.org/rn501ysij/2013_08_06_095231.png In the first stage "Execute Command", the command is cd MYDIRECTORY , it's works In the second stage, the command is for /F "delims=" %A in ('dir /b *.csv') do if %~zA LSS 250 del "%~dpnxA" but it doesn'...
by PAULOM
Mon Aug 05, 2013 6:43 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

It's works !

But on "Execute Command Activity", I have not found a similar command DOS (cd myfiles) to put before for /F "delims=" %A in ('dir /b *.csv') do if %~zA LSS 1024 del "%~dpnxA" in DataStage
by PAULOM
Mon Aug 05, 2013 4:05 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

I found this :

for /F "delims=" %A in ('dir /b *.csv') do if %~zA LSS 1024 del "%~dpnxA"
by PAULOM
Fri Aug 02, 2013 8:44 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

I don't want a batch but one command DOS for the size...

But well it's not serious I will untangle.
by PAULOM
Fri Aug 02, 2013 7:42 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

Anybody has an alternative?
by PAULOM
Fri Aug 02, 2013 6:34 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

Why it's only for your message?
by PAULOM
Fri Aug 02, 2013 3:54 am
Forum: General
Topic: Would like to not create an empty csv file
Replies: 48
Views: 26635

Like my csv have "first line is column names", the size of files = 300 o As I did not succes to make it with after-job subroutine, I try to do with a Sequence whit "Execute Command" : IF EXIST \myfolder\ test.csv del /F /Q \myfolder\ test.csv But for the size less than 300o, i do...