View previous topic :: View next topic
|
Author |
Message |
dineshsjce Currently Banned New User
Joined: 16 Apr 2007 Posts: 41 Location: Bangalore
|
|
|
|
Hi ,
I wrote a COBOL program in a PS file and tried compiling it. I got the JCl errors. But the same COBOL program compiled in PDS member. What is the reason ?
Regards,
Dinesh |
|
Back to top |
|
|
a027412
New User
Joined: 05 Jul 2007 Posts: 40 Location: Minneapolis, MN
|
|
|
|
Hey dineshsjce,
Please post the errors you got during compilation. |
|
Back to top |
|
|
dineshsjce Currently Banned New User
Joined: 16 Apr 2007 Posts: 41 Location: Bangalore
|
|
|
|
8 IEF646I REQUIRED POSITIONAL PARAMETER MISSING IN THE DSNAME FIELD
30 IEF646I REQUIRED POSITIONAL PARAMETER MISSING IN THE DSNAME FIELD |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Dinesh,
Please post the JESJCL messages for the above lines (8 & 30). |
|
Back to top |
|
|
dineshsjce Currently Banned New User
Joined: 16 Apr 2007 Posts: 41 Location: Bangalore
|
|
|
|
1 //G68448C JOB ,,NOTIFY=G68448,CLASS=B,MSGLEVEL=(1,1),MSGCLASS=X
2 //SET1 SET COPYLIB=OPERN.CICS3.COPYLIB
3 //SET2 SET LOAD=OPERN.CICS3.LOADLIB
4 //SET3 SET VSAMLIB=OPERN.CICS3.VSAMLIB
5 //SET4 SET WORK=UNIT=SYSDA,SPACE=(460,(350,100))
//*ET5 SET REG=®
//*ET6 SET DSP=&DSP
//*
//* 1. COMPILATION
//*
6 //COMPILE EXEC PGM=IGYCRCTL,REGION=4M,
// PARM='DYNAM,LIST,RENT,LIB,OBJECT,APOST,OPTIMIZE'
//* PARM='DYNAM,RENT,DUMP,LIB,OBJECT,APOST,OPTIMIZE,OFFSET'
7 //STEPLIB DD DSN=IGY.SIGYCOMP,DISP=SHR
8 //SYSIN DD DSN=G68448.PRACTICE.TEST1(),DISP=SHR
9 //SYSUT1 DD UNIT=SYSDA,SPACE=(460,(350,100))
10 //SYSLIB DD DSN=OPERN.CICS3.COPYLIB,DISP=SHR
11 // DD DSN=OPERN.CICS3.VSAMLIB,DISP=SHR
12 //SYSUT2 DD UNIT=SYSDA,SPACE=(460,(350,100))
13 //SYSUT3 DD UNIT=SYSDA,SPACE=(460,(350,100))
14 //SYSUT4 DD UNIT=SYSDA,SPACE=(460,(350,100))
15 //SYSUT5 DD UNIT=SYSDA,SPACE=(460,(350,100))
16 //SYSUT6 DD UNIT=SYSDA,SPACE=(460,(350,100))
17 //SYSUT7 DD UNIT=SYSDA,SPACE=(460,(350,100))
18 //SYSLIN DD DSN=&LOADSET,DISP=(MOD,PASS),UNIT=SYSDA,
// SPACE=(80,(300,100)),DCB=BLKSIZE=400
19 //SYSPRINT DD SYSOUT=*
20 //SYSUDUMP DD SYSOUT=*
21 //SYSABEND DD SYSOUT=*
//*
//* 2. LINKEDIT
//*
//* LINKEDIT EXEC PGM=IEWL,COND=(5,LT),REGION=4M
//* FOLLOWING EXEC PGM IS CHANGED TO HEWL
22 //LINKEDIT EXEC PGM=HEWL,COND=(5,LT),REGION=4M
//* PARM='XREF,RMODE=ANY,AMODE=31,TEST,AC=1'
23 //SYSLIB DD DSN=CEE.SCEELKED,DISP=SHR
24 //SYSPRINT DD SYSOUT=*
25 //SYSLIN DD DSN=&LOADSET,DISP=(OLD,DELETE)
26 // DD DDNAME=SYSIN
27 //SYSUT1 DD UNIT=SYSDA,SPACE=(460,(350,100))
28 //SYSUT2 DD UNIT=SYSDA,SPACE=(460,(350,100))
29 //SYSUT3 DD UNIT=SYSDA,SPACE=(460,(350,100))
30 //SYSLMOD DD DSN=OPERN.CICS3.LOADLIB(),DISP=SHR
//* |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Dinesh,
Why did you give blank parenthsis in the lines 8 & 30? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
u dont have to code parenthesis for PS ! just give the dataset name ! u cud have identified that from the displayed messages !
8 IEF646I REQUIRED POSITIONAL PARAMETER MISSING IN THE DSNAME FIELD
30 IEF646I REQUIRED POSITIONAL PARAMETER MISSING IN THE DSNAME FIELD |
|
Back to top |
|
|
dineshsjce Currently Banned New User
Joined: 16 Apr 2007 Posts: 41 Location: Bangalore
|
|
|
|
Hi
Not like that. I didnt submit JCL. Try to understand my problem. See all I did was , I wrote a COBOL program in a Physical Sequential file and tried compiling the program . During that time I got this errors(It says JCL errors). I am still in compilation stage . I didnt go for running of the program. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
yes but what you call compilation stage is just another JCL... so the JCL erros. |
|
Back to top |
|
|
dineshsjce Currently Banned New User
Joined: 16 Apr 2007 Posts: 41 Location: Bangalore
|
|
|
|
But as u said earlier , I didnt give any parathesis like that. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But as u said earlier , I didnt give any parathesis like that. |
Something did. . .
Quote: |
8 //SYSIN DD DSN=G68448.PRACTICE.TEST1(),DISP=SHR
30 //SYSLMOD DD DSN=OPERN.CICS3.LOADLIB(),DISP=SHR
|
On a PS dataset, there should be no () - that is invalid syntax. Also, a PS is usually allocated with disposition OLD rather than SHR.
Is there some reason you are not using the standard compile jcl for your system? I'd suggest you move your source into the appropriate library and use your standard compilaton jcl. . . |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Quote: |
30 //SYSLMOD DD DSN=OPERN.CICS3.LOADLIB(),DISP=SHR |
The loadlib would have to be a PDS. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Would I be right in thinking that your compile run is submitted from a screen driven process. |
|
Back to top |
|
|
a027412
New User
Joined: 05 Jul 2007 Posts: 40 Location: Minneapolis, MN
|
|
|
|
hey, please try this.
close the PS which contains the code and try compiling. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
And a process that does not validate before submitting. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
hey, please try this.
close the PS which contains the code and try compiling. |
Why, how will this make the PS a member of a PDS, which is the requirement of the JCL being submitted.
Good point Dick, a compiler submission routine without any validation. |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
Hi Dinesh,
Pay attention to expat's comment. Are you submitting the JCL to compile on your own or using any tool or automated process to submit.
Quote: |
Would I be right in thinking that your compile run is submitted from a screen driven process. |
If you are submitting on your own then change the JCL to remove the parenthesis.
Even otherwise once the job fails, open the JCL in spool and change it to remove the parenthesis in line 8 and 30 and submit again. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Once again. . . . .
People should not create their own or "tweak" the standard compile process. This causes nightmares with some regularity. |
|
Back to top |
|
|
|