View previous topic :: View next topic
|
Author |
Message |
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi,
As we all know we can pass 100 words through PARM parameter.
Well when i'm trying to pass parm variables through second line with all the possible continuation, im getting the below error.
Code: |
********************************* TOP OF DATA ****************
STMT NO. MESSAGE
3 IEFC002I INCLUDE GROUP $JOBLIB1 WAS EXPANDED USING PRIVATE LIBRARY DGC
29 IEFC605I UNIDENTIFIED OPERATION FIELD
30 IEFC605I UNIDENTIFIED OPERATION FIELD
******************************* BOTTOM OF DATA ************* |
Code: |
//STEP050 EXEC PGM=SSIDCAM1
// PARM='ASMFN=&ASMFN,ASMGD=&ASMGD,ASMKE=&ASMKE, c
// CMSFN=&CMSFN,CMSGD=&CMSDG'
//STEPLIB DD DSN=UGCG1VD.GSOURCE.BATCH.LOADLIB,
// DISP=SHR
//SYSUT1 DD DSN=UGCG1VD.TEST.SORT2,
// DISP=SHR
//IDCDATA DD DSN=UGCG1VD.TEST.SORT3,
// DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DSN=DGCVPG2.V823.PROCLIB($JOBLIB2),DISP=SHR |
The continuation is at 72 column. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Place a comma after PGM=SSIDCAM1 |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Sorry the comma was there after SSIDCAM1.
Sorry for posting the wrong code and error.
Code: |
//STEP050 EXEC PGM=SSIDCAM1,
// PARM='ASMFN=&ASMFN,ASMGD=&ASMGD, C
// ASMKE=&ASMKE'
//STEPLIB DD DSN=UGCG1VD.GSOURCE.BATCH.LOADLIB,
// DISP=SHR
//SYSUT1 DD DSN=UGCG1VD.TEST.SORT2,
// DISP=SHR
//IDCDATA DD DSN=UGCG1VD.TEST.SORT3,
// DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=* |
I/P
Code: |
&ASMFN
&ASMFN..ABCF.AF.&ASMGD
&ASMFN..ABCF.BEFORE.&ASMGD
&ASMFN..ABCF.BF.&ASMGD
&ASMFN..AGD041.RPT.&ASMGD
&ASMFN..AMAC.&ASMKE
&ASMFN..AMDS.&ASMKE
&ASMFN..AMHS.&ASMKE
&ASMFN..AMHS.PURGED.&ASMGD |
O/P
Code: |
PGCVPG1.ASM1.V823
PGCVPG1.ASM1.V823.ABCF.AF.GD
PGCVPG1.ASM1.V823.ABCF.BEFORE.GD
PGCVPG1.ASM1.V823.ABCF.BF.GD
PGCVPG1.ASM1.V823.AGD041.RPT.GD
PGCVPG1.ASM1.V823.AMAC. <------KE is missing
PGCVPG1.ASM1.V823.AMDS. <------KE is missing
PGCVPG1.ASM1.V823.AMHS.
PGCVPG1.ASM1.V823.AMHS.PURGED.GD |
The next line PARM value is not picked why? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
try this
Code: |
// PARM='ASMFN=&ASMFN,ASMGD=&ASMGD,ASMKE=&ASMKE,CMSFN=&CMSFN,
// CMSGD=&CMSDG'
|
Gerry |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi Gerry,
Tried no changes the o/p is same still KE is missing. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
my example works, I didn't see your new code.
Just use a single line
Code: |
// PARM='ASMFN=&ASMFN,ASMGD=&ASMGD,ASMKE=&ASMKE' |
Gerry |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Thank you all,
The problem is resolved.
Code: |
// PARM=('ASMFN=&ASMFN','ASMGD=&ASMGD',
// 'ASMKE=&ASMKE') |
|
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hi Himanshu, Syntax given by Gerry for same is correct.
Have you checked variables you are using at output in the program?
or looks silly but you can try
Code: |
// SET FM='ASMFN='
// SET DG='ASMGD='
// SET KE='ASMKE='
|
Code: |
// PARM='&FN&ASMFN,&GD&ASMGD,&KE&ASMKE,CMSFN=&CMSFN,CMSGD=&CMSDG'
|
|
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi Gerry,
I cant use single line as parm i/p are more than 80 bytes. |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Quote: |
Just use a single line Code:
// PARM='ASMFN=&ASMFN,ASMGD=&ASMGD,ASMKE=&ASMKE' |
Hi Gerry this is not working if i have to continue at second line. |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi Sambhaji,
Code: |
// SET FM='ASMFN='
// SET DG='ASMGD='
// SET KE='ASMKE=' |
Could you elaborate this.
Now the issue is the PARM values are more than 100 bytes due to which the JCL is not giving an error.
Can i pass the parm values more than 100 bytes through PARMLIB?
what all changes are required in the pgm?
Right now the PARM values are being accepted in Linkage Section of PGM.But these PARM values are only 80 byte which after the changes i need to increase to 255 byte. |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Quote: |
JCL is not giving an error. |
JCL is giving an error, coz parm cannot go beyond 100 bytes. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hi
Quote: |
JCL is giving an error, coz parm cannot go beyond 100 bytes.
|
In that case you can have it in SYSIN DD statement(or any other) and read it in your program. |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi Sambhaji,
Code: |
// SET FM='ASMFN='
// SET DG='ASMGD='
// SET KE='ASMKE=' |
How can we achieve by this? |
|
Back to top |
|
|
|