Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Continuation for the PARM parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Continuation for the PARM parameter
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

Site Director


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

PostPosted: Mon Apr 20, 2009 9:56 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Mon Apr 20, 2009 10:21 am    Post subject:
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    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Mon Apr 20, 2009 10:43 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Continuation Character ballaswaroop SYNCSORT 8 Thu Aug 25, 2016 4:46 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us