Generate a local in batch mode

Hello

I have to automate the passage from DDM to VIEW for many DDM
I thought to do batch but I do not see how
I write this in command card

//CMSYNIN DD *
OUTIL01,XXXXXXX
XXXXXXX
EDIT L
,.V(ZSU-ICT-A)
.
SAVE FILE126A
.
/*

And the result after execution

DATA OUTIL01,XXXXXXX
DATA XXXXXXX
Logon accepted to library OUTIL01.
NEXT EDIT L
0010 ,.V(ZSU-ICT-A)
0020 .
0010 ,.V(ZSU-ICT-A)
0010 SAVE FILE126A
0010 SAVE FILE126A
0010 .
0010 SAVE FILE126A

Can you help me ?

Brgds

My recollection is that batch editing is limited to programming objects (not data areas, not maps). It looks to me that Natural thinks you are creating a program called L.

Hello
Thank’s for your response but if i read correctly the documentation i understant it

Syntax 1

EDIT [object-type] [object-name [library-id]] with object_type is L for Local
If you do not specify an object-name and there is no object in the source work area, the empty program editor screen will be invoked where you can create a program

Brgds

Because you’re running in batch, Natural is treating the EDIT command as EDT which handles only programming objects.

You are right :frowning:

So i resolve this by program (I generate view by unload ddm)

Thank’s for your help

Brgds

Hello

I have problems tha i can not solve

my command file

outil01,xxxxxx
xxxxxx
EDIT
1 FILE01
2 CHAMP01 (A1)
2 …
2 CHAMPN (An)
.
SAVE FILE01
EDIT
1 FILE02
2 …
.
SAVE FILE02
FIN

and the result
DATA OUTIL01,XXXXX
DATA XXXXXXX
Logon accepted to library OUTIL01.
NEXT EDIT
0010 1 FILE01
0020 2 …
2150 2 …
2160 .
0010 1 FILE01
0010 SAVE FILE1261
0020 2 CHAMP01
0020 EDIT
0030 2 CHAMP02
0030 1 FILE02
0040 2 CHAMP03

Why this mixture ?

How can i save FILE01 ?

Brgds

Review the documentation for the EDT command - the batch editor. To exit the edit session for a program, enter the .e command. After SAVE, insert a CLEAR command to prepare for the next object.

Thanks for the answering.

Hello

It’s work
Thank you very much

Brgds