Reply to user defined options

We use the user-defined options from PDM also. As a reminder, for the command to prompt for information enter '??' in front of the parameter name.

Following are some examples:

AL ALCOBJ ??OBJ((&L/&N &T *EXCL))
To allocate exclusive use of an object

DL DLCOBJ ??OBJ((&L/&N *FILE *EXCL))
To de-allocate exclusive use of a file

CD CRTDUPOBJ ??OBJ(&N) ??FROMLIB(&L) ??OBJTYPE(*FILE)
??TOLIB(*FROMLIB)
??NEWOBJ(*OBJ) ??DATA(*NO)
To create a dupe object

CF CPYF ??FROMFILE(&L/&N) ??TOFILE(&L/&N) ??MBROPT(*REPLACE)
??CRTFILE(*YES)
To copy a file

CL CLRPFM ??FILE(&L/&F) ??MBR(&N)
To clear a member

C2 CPYTOPCD ??FROMFILE(&L/&F) ??TOFLR('AS400DTA/MYFLDR')
??FROMMBR(&N)
??TODOC(&N) ??REPLACE(*NO)
To copy a member to IFS

LK WRKOBJLCK ??OBJ(&L/&N) ??OBJTYPE(&t)
To check for object locks

SJ SBMJOB ??CMD(CALL PGM(&N)) ??JOBQ(*JOBD) ??SCDDATE(*CURRENT) ??SCDTIME(*CURRENT)
To submit a job

We use others without parameters too. Such as SP = wrksplf, or WA = wrkactjob or my favorite ZZ = signoff


This was first published in March 2001

Dig deeper on Implementation

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close