Display PD field in displayable format



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Display PD field in displayable format

Postby richagoyal » Tue Jul 19, 2011 5:50 pm

Hi ,

I am trying to display PD value into my JCL but it is giving 00.
//SORT001  EXEC PGM=SORT                               
//SYSOUT   DD  SYSOUT=*                                 
//SORTIN   DD  DSN=CS.DH6D.DATE.file,DISP=SHR     
//SORTOUT  DD  DSN=CS.DH6D.test,
//             DISP=(,CATLG,DELETE),...
//SYSIN    DD  *                                       
  OPTION COPY                                       
  OUTFIL BUILD=(1:72,2,PD,TO=ZD,LENGTH=4)

Input file data as it is comp field(BI)
00
04 ,
00
03

while executing the job , i am getting 0000 in my output file.
Please suggest how to get the correct data ?
richagoyal
 
Posts: 20
Joined: Thu May 27, 2010 11:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: Display PD field in displayable format

 

Re: Display PD field in displayable format

Postby BillyBoyo » Tue Jul 19, 2011 5:55 pm

In your control cards you are saying you have a Packed Decimal which you want to convert to a Zoned Decimal.

Down with your data, you say it the field is comp (BI).

If you get the data and sort cards to agree (BI instead of PD) then you should get the result you want (if the rest of the stuff is OK, which I have no idea about).

If you want to know why you are only getting zero, first try a little research with your SORT manual, if you still don't understand, explain how you understand it and someone can point you in the right direction.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Display PD field in displayable format

Postby richagoyal » Tue Jul 19, 2011 6:11 pm

Thanks its worked !
richagoyal
 
Posts: 20
Joined: Thu May 27, 2010 11:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: Display PD field in displayable format

Postby BillyBoyo » Tue Jul 19, 2011 6:51 pm

You're welcome.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post