IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Continuation for the PARM parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 9:52 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 20, 2009 9:56 am
Reply with quote

Hello,

Place a comma after PGM=SSIDCAM1
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 10:18 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Apr 20, 2009 10:21 am
Reply with quote

Hi,

try this
Code:
//           PARM='ASMFN=&ASMFN,ASMGD=&ASMGD,ASMKE=&ASMKE,CMSFN=&CMSFN,
//             CMSGD=&CMSDG'                                           



Gerry
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 20, 2009 10:27 am
Reply with quote

Example section of This Link will give you required.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 10:29 am
Reply with quote

Hi Gerry,
Tried no changes the o/p is same still KE is missing.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Apr 20, 2009 10:43 am
Reply with quote

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
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 10:46 am
Reply with quote

Thank you all,

The problem is resolved.

Code:
//            PARM=('ASMFN=&ASMFN','ASMGD=&ASMGD',
//             'ASMKE=&ASMKE')                   
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 20, 2009 10:50 am
Reply with quote

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
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 11:58 am
Reply with quote

Hi Gerry,

I cant use single line as parm i/p are more than 80 bytes.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 12:05 pm
Reply with quote

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
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 12:13 pm
Reply with quote

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
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 12:14 pm
Reply with quote

Quote:
JCL is not giving an error.


JCL is giving an error, coz parm cannot go beyond 100 bytes.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 20, 2009 1:27 pm
Reply with quote

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
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 20, 2009 1:34 pm
Reply with quote

Hi Sambhaji,

Code:
//    SET FM='ASMFN='
//    SET DG='ASMGD='
//    SET KE='ASMKE='


How can we achieve by this?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top