Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

conditional job

hi gays, 

i work for project automation migration data from database to another .

i create 3 job 

job 1 for migration data from Sql server to oracle

job 2 for migration data from oracle to oracle

i want to create a job parent for test ;

if CMD line content the context param of job 1  then run job 1

else run job 2 

Labels (2)
14 Replies
Anonymous
Not applicable
Author

I'm an idiot. Sorry. I've just noticed your logic. The context variables are not going to be null. Try creating an empty String context variable. It won't be null, it will be treated like an empty String "". That is why your logic is not working.

Anonymous
Not applicable
Author

i whrite this code in tjava:

System.out.println("contextsqlserver_Database :"+context.contextsqlserver_Port);

issus : contextsqlserver_Port cannot be resolved or is not a field

i try this solution ( screenshot attached) with tloadcontext 

and i insert the value of parameter in file.dat 

and same problem

 

 


Sans titre1.jpg
Anonymous
Not applicable
Author

That means that the context variable does not exist in the job. Check your context variables tab. A context variable must be configured in each job it is used. 

Anonymous
Not applicable
Author

ok thinks for your support

Anonymous
Not applicable
Author

No problem 🙂