Using LIBMEMSYM

Tools and several solutions to manage Control-M products
Post Reply
Scalap

Using LIBMEMSYM

Post by Scalap » 29 Aug 2012 10:51

Hi all,

In my job def, in tab "Set" i initiate
Varname = %%LIBMEMSYM
Value = c:\ctm\varfile.txt

varfile.txt contain only :

%%PathIN=C:\
%%dateStd=%%DATE

At the end of the job, i see control-M return "CTMERR" on the variables (here PathIN & dateStd)

I think is not an issue but, i can't understand how use the %%LIBMEMSYM (on ctm 7.0)

Thanks for your help

Regards
Last edited by Scalap on 29 Aug 2012 5:05, edited 1 time in total.

User avatar
Danny
Nouveau
Nouveau
Posts: 21
Joined: 18 May 2010 12:00
Location: EMEA
Contact:

Post by Danny » 29 Aug 2012 4:59

Varname = %%LYBMEMSYM
should be
Varname = %%LIBMEMSYM

Scalap

Post by Scalap » 29 Aug 2012 5:04

Danny wrote:Varname = %%LYBMEMSYM
should be
Varname = %%LIBMEMSYM
Yes sorry, i wanted to say %%LIBMEMSYM (i do update at the original post)

After many tests, i just can understand that Control-M can't find the variable file. It's the reason why it can not read the variables. But why ...

I check the read/write rights : it's ok. The owner is domain admin ...
I'm lost !

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 30 Aug 2012 8:06

Hi

Where did you put your file ?
The LIBMEMSYM file must be available from your Control-M Server only.

It could be a share, but your Server must be work with it.

After that, you must define in your job the path to access on this file.
In AUTOEDIT part you must define :

%%LIBMEMSYM = the complete path and filename

Scalap

Post by Scalap » 30 Aug 2012 10:00

fyot wrote:Hi

Where did you put your file ?
The LIBMEMSYM file must be available from your Control-M Server only.

It could be a share, but your Server must be work with it.

After that, you must define in your job the path to access on this file.
In AUTOEDIT part you must define :

%%LIBMEMSYM = the complete path and filename
I saw "Paris" so ...

Le fichier est sur un control-M/Server de recette (avec l'agent également installé sur le même serveur).
Sur le job test, le LIBMEMSYM est déclaré depuis l'onglet "SET"
Var Name : LIBMEMSYM (sans préciser le %% puisque initié par défaut depuis cet onglet)
Value : C:\ctm\param\varliste.txt

sur retour de sysout, les variables appelées depuis ce fichier retourne un CTMERR systématiquement.

Après avoir échangé avec BMC sur le sujet, ils reproduisent le cas d'anomalie en indiquant un mauvais path ou mauvais nom de fichier. Donc ce qu'on comprend c'est que Ctm n'arrive pas à "trouver" ou même "lire" le fichier et donc les variables initiées dedans ...

Le owner du job est domain admin donc normalement pas de soucis de lecture sur un pauvre petit fichier text

Du coup ... c'est difficile à comprendre.

Encore merci pour ton aide.

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 30 Aug 2012 10:51

Bonjour

Merci de répondre en anglais pour que tout le monde puisse profiter de l'information.

If you read job logs, you will see a message concerning
LIBMEMSYM FILE C:\ctm\param\varliste.txt NOT FOUND

Reasons could be :
1 - Control-M server need to have rights acces on the directory and the file.

2 - Your server is a windows 2008 version, so varliste.txt file name is in fact
named varliste.txt.txt
resaon is with windows 2008, extensions are not displayed in standard
but correctly added with the filename.

So verify it, and just rename varliste.txt as varliste, extension must
still exist, but will be not displayed.

You can verify it using CMD

Scalap

Post by Scalap » 03 Sep 2012 2:34

Hi,

I checked the extention it was ok. But still does not work.
A person from BMC doesn"t understand to ... I stop to work on it, that takes too long time.

Thanks again for your advise

User avatar
asallam
Nouveau
Nouveau
Posts: 8
Joined: 25 Oct 2011 12:00

Post by asallam » 06 Nov 2012 9:41

try the following in the file
%%\PathIN=C:\
%%\dateStd=%%DATE
not
%%PathIN=C:\
%%dateStd=%%DATE

Post Reply